Description
metered-rs is a Rust library for measuring a running service. It provides metric state such as counters, gauges, histograms and labelled families, which your code owns and updates directly, and it encodes them straight to the OpenMetrics text format for scraping. Metrics are designed to be readable as well as writable, so an enabled flag or queue depth can be read from the live value. The library offers typed metric trees and registry views that read through the service graph at scrape time, and it avoids global state and shared handles. For code that already emits tracing spans, the metered-tracing crate turns those spans into counters and duration histograms, so you instrument once for both traces and metrics. Exposition formats live in sink crates such as metered-om, and the default path has no serde dependency. The project includes a book that covers the metric model, labels, exemplars, tracing, dashboards and migration.…
Highlights
- Counters, gauges, histograms and metric families
- Native OpenMetrics output
- Turns tracing spans into metrics with metered-tracing
- Typed metric trees and registry views
- No serde dependency on the default path
Ratings & Reviews
No ratings yet
Be the first to rate Metered RS.
People also visit
Metered RS FAQ
What is metered-rs?
A Rust library for measuring programs in production. It provides metric types and encodes them as OpenMetrics text so a monitoring system can scrape them.
Does it need serde?
No. The default path has no serde dependency. Metrics are encoded through schema and value collection, and exposition formats live in sink crates such as metered-om.
How do I use it with tracing?
The metered-tracing crate turns spans your code already opens into metric families, giving counters and duration histograms for instrumented methods.
Where can I learn more?
The Metered book is the full guide. It covers the metric model, every metric type, labels, name shaping, exemplars, tracing, dashboards and migration.
What are the best Metered RS alternatives?
Popular alternatives to Metered RS include Autometrics RS, Micrometer and Metrics. See all Metered RS alternatives



