{"repo":"magnet/metered-rs","free":true,"listed":false,"github":"https://github.com/magnet/metered-rs","clone":"git clone https://github.com/magnet/metered-rs.git","description":"Fast, ergonomic metrics for Rust","language":"Rust","stars":344,"topics":["rust-lang","metrics","performance","monitoring","meta-programming","macros"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"metered-rs Fast, ergonomic, OpenMetrics-native metrics for Rust Metered helps you measure your programs in production. It is a metric-state, composition, and schema/value collection library for Rust services. Exposition formats live in sink crates such as metered-om . The Metered book is the full guide. It covers the metric model, every metric type and when to use it, labels, name shaping, exemplars, tracing, dashboards, and migration. This README is the tour. The book is the reference. Core metered gives services readable metric state ( Counter , Gauge , histograms, Family ), typed metric trees, and schema/value collection. It also gives registry views that borrow through the real service graph at scrape time. Metered layers operation instrumentation: - Does your code already emit tracing spans? metered-tracing turns them into metric families. An instrumented method gets counters and duration histograms from the span it already opens. You instrument once and pay once, for both traces and metrics. - Everything else is plain core metric state -- counters, gauges, and histograms your code owns and updates directly. A few ideas guide Metered: Metrics are state, not shadows. A metric is the live value your code uses: an enabled flag can be a gauge-valued atomic that the service reads, and a queue-depth gauge should come from the queue or its cached depth. Metrics are readable, not write-only. Native OpenMetrics, zero serialization. Metrics encode straight to the OpenMetrics text ","default_branch":null,"files":null,"tree":[],"storefront":"/r/magnet","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/magnet/metered-rs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}