# metrics-rs/metrics

A metrics ecosystem for Rust.

Repository: https://github.com/metrics-rs/metrics
Canonical: https://ross.abutalabs.com/products/metrics-rs-metrics
Language: Rust
License: MIT
License Family: permissive
Topics: rust-lang, metrics, telemetry
Last push: 2026-08-04T15:45:15+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 35, longevity 100
- inputs: {"age_days": 2722, "days_push": 29, "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 1479, forks 221 (observed 2026-08-28T04:04:50.603134+00:00)

## What it is
A high-performance, protocol-agnostic metrics ecosystem for Rust, centered on a lightweight metrics facade similar to the log crate. It lets library and application authors instrument code with counters, gauges, and histograms, and export those metrics to external systems via exporter crates.

## Use cases
- instrument a Rust application to collect metrics in production
- count how many times a code path is hit
- track execution time of code with histograms
- expose internal counters and gauges in a standardized way
- capture tracing span fields as metric labels
- export Rust application metrics to monitoring systems

## When to choose
- you're writing Rust and need application or library instrumentation
- you want a log-crate-style facade so instrumented libraries feed metrics into your app automatically
- you need protocol-agnostic metrics with pluggable exporters

## When to avoid
- you need full observability (traces + logs + metrics) in one bundled solution rather than a metrics facade
- your project is not in Rust
- you only need system-level monitoring rather than application instrumentation

## Facets
- artifact type: library
- maturity: stable
- function: monitoring, logging, tracing
- domain: monitoring, developer-tools, performance
- platform: rust, cross-platform
- tags: metrics, telemetry, instrumentation, observability, facade, exporters, devops

## Member repositories
- metrics-rs/metrics (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:50.603134+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-30T04:34:19.612121+00:00, confidence not recorded.
  - readme: https://github.com/metrics-rs/metrics (fetched 2026-08-28T04:04:50.603134+00:00, sha dcafb61e0236)
  - registry_crates: https://crates.io/api/v1/crates/metrics (fetched 2026-08-29T11:41:16.650687+00:00, sha 40acc7370d62)
- Data as of 2026-08-30T08:39:29.467469+00:00.
