# prometheus/client_js

Prometheus client for node.js

Repository: https://github.com/prometheus/client_js
Canonical: https://ross.abutalabs.com/products/client_js
Language: JavaScript
License: Apache-2.0
License Family: permissive
Topics: metrics, prometheus-client, monitoring, nodejs
Last push: 2026-08-26T21:04:06+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 67, longevity 100
- inputs: {"age_days": 3939, "days_push": 7, "days_rel": 9, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3483, forks 418 (observed 2026-08-28T04:08:06.926473+00:00)

## What it is
The official Prometheus client library for Node.js, supporting counters, gauges, histograms, and summaries. It exposes metrics via a registry that can be scraped by Prometheus, and includes default Node.js runtime metrics like event loop lag and GC.

## Use cases
- instrument a node.js app with prometheus metrics
- collect default node.js runtime metrics like event loop lag and gc
- expose a /metrics endpoint for prometheus scraping
- create custom counters, gauges, histograms and summaries
- monitor http request latency with histograms
- push metrics to a prometheus pushgateway

## When to choose
- you run node.js services monitored by prometheus
- you need standard prometheus metric types in javascript
- you want built-in node.js runtime metrics out of the box

## When to avoid
- you need metrics for a non-node.js runtime
- you want a full metrics dashboarding solution rather than a client library
- you use a different monitoring ecosystem like statsd or opentelemetry exclusively

## Facets
- artifact type: library
- maturity: stable
- function: monitoring, http-server
- domain: monitoring, backend, developer-tools
- platform: cross-platform
- tags: prometheus, metrics, instrumentation, observability, nodejs, devops, linux

## Member repositories
- prometheus/client_js (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:06.926473+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:36:25.542006+00:00, confidence not recorded.
  - readme: https://github.com/prometheus/client_js (fetched 2026-08-28T04:08:06.926473+00:00, sha 4f430f48ec1d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
