client_js
Prometheus client for node.js
File Explorer
- approve-workflows.yml
- changelog.yml
- ci.yml
- release.yml
- dependabot.yml
- pre-commit
- labels.js
- cluster.js
- counter.js
- gauge.js
- histogram.js
- index.js
- registry.js
- summary.js
- util.js
- cluster.js
- counter.js
- default-metrics.js
- exemplars.js
- gauge.js
- histogram-1.js
- histogram-2.js
- histogram-3.js
- histogram-4.js
- histogram-large-memory.js
- pushgateway.js
- server.js
- summary.js
- worker.js
- processMetricsHelpers.js
- safeMemoryUsage.js
- safeRss.js
- eventLoopLag.js
- eventLoopUtilization.js
- gc.js
- heapSizeAndUsed.js
- heapSpacesSizeAndUsed.js
- osMemoryHeap.js
- osMemoryHeapLinux.js
- processCpuTotal.js
- processHandles.js
- processMaxFileDescriptors.js
- processOpenFileDescriptors.js
- processRequests.js
- processResources.js
- processStartTime.js
- version.js
- bucketGenerators.js
- cluster.js
- counter.js
- defaultMetrics.js
- exemplar.js
- gauge.js
- histogram.js
- metric.js
- metricAggregators.js
- pushgateway.js
- registry.js
- summary.js
- timeWindowQuantiles.js
- util.js
- validation.js
- worker.js
- counterTest.js.snap
- exemplarsTest.js.snap
- gaugeTest.js.snap
- histogramTest.js.snap
- pushgatewayWithPathTest.js.snap
- registerTest.js.snap
- summaryTest.js.snap
- eventLoopLagTest.js
- eventLoopUtilizationTest.js
- gcTest.js
- heapSizeAndUsedTest.js
- heapSpacesSizeAndUsedTest.js
- maxFileDescriptorsTest.js
- processHandlesTest.js
- processOpenFileDescriptorsTest.js
- processRequestsTest.js
- processResourcesTest.js
- processStartTimeTest.js
- versionTest.js
- aggregatorsTest.js
- browserCompatibilityTest.js
- bucketGeneratorsTest.js
- clusterTest.js
- counterTest.js
- defaultMetricsTest.js
- exemplarsTest.js
- gaugeTest.js
- histogramTest.js
- pushgatewayTest.js
- pushgatewayWithPathTest.js
- registerTest.js
- summaryTest.js
- timeWindowQuantilesTest.js
- typescript.ts
- utilTest.js
- validationTest.js
- workerTest.js
- .editorconfig
- .gitattributes
- .gitignore
- .npmignore
- .npmrc
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- eslint.config.mjs
- index.d.ts
- index.js
- LICENSE
- MAINTAINERS.md
- NOTICE
- package.json
- README.md
- SECURITY.md
- tsconfig.json
- Workers.md
# Installation Guide
nodeSetup Steps
npm install
Install project dependency packages.
npm test
Run the test suite to verify correct operation.
Key Commands
npm install
Install project dependencies specified in package.json.
npm test
Run unit and integration tests.
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
cluster
View Details ▼
cluster
Find clusters in a graph and augment the graph with this information.
cluster {{input.gv}}
Generate clusters that optimize modularity and print the result to `stdout`:
cluster -C {{5}} {{input.gv}}
Specify a target number of [C]lusters (approximate) to generate (0 by default, meaning a number that approximately optimizes the modularity):
cluster -c {{0|1}} {{input.gv}}
Use a different [c]lustering method (0: modularity clustering, 1: modularity quality):
npm install
View Details ▼
npm install
Install Node packages.
npm {{[i|install]}}
Install dependencies listed in `package.json`:
npm {{[i|install]}} {{package_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}
Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
