# tikv/rust-prometheus

Prometheus instrumentation library for Rust applications

Repository: https://github.com/tikv/rust-prometheus
Canonical: https://ross.abutalabs.com/products/rust-prometheus
Language: Rust
License: Apache-2.0
License Family: permissive
Last push: 2025-12-31T07:01:42+00:00

## Health v2 (maintenance only)
Score: 59/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 60, release rhythm 35, longevity 100
- inputs: {"age_days": 3675, "days_push": 245, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1180, forks 208 (observed 2026-08-28T04:03:53.449022+00:00)

## What it is
The official Rust client library for Prometheus, ported from the Go client, for instrumenting Rust applications with metrics. It supports counters, gauges, histograms, static metrics, process metrics, and push gateways.

## Use cases
- expose prometheus metrics from a rust service
- add counters and histograms to a rust application
- instrument a rust web server for monitoring
- export process metrics in rust
- push metrics to a prometheus pushgateway from rust

## When to choose
- you need Prometheus-compatible metrics in a Rust application
- you want a mature client ported from the official Go client
- you need compile-time-optimized metric lookups with static metrics

## When to avoid
- you need OpenTelemetry-based tracing and metrics rather than Prometheus format
- your project is not in Rust

## Facets
- artifact type: library
- maturity: stable
- function: monitoring, logging
- domain: monitoring, developer-tools, backend
- platform: rust, cross-platform
- tags: prometheus, metrics, instrumentation, observability

## Member repositories
- tikv/rust-prometheus (main) score 59

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:53.449022+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-30T06:25:22.038349+00:00, confidence not recorded.
  - readme: https://github.com/tikv/rust-prometheus (fetched 2026-08-28T04:03:53.449022+00:00, sha 8b432cdbdae2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
