client_js

(★ 3,482)

Prometheus client for node.js

File Explorer

  • .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

node
Prerequisites

Setup 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.

This library does not bundle any web framework; you must expose metrics by responding to scrape requests with the result of await registry.metrics().

# Use via CDN

jsDelivr

jsDelivr 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 ▼

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 ▼

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`:

// repository documentation