{"repo":"tyranron/metrics-prometheus-rs","free":true,"listed":false,"github":"https://github.com/tyranron/metrics-prometheus-rs","clone":"git clone https://github.com/tyranron/metrics-prometheus-rs.git","description":"`prometheus` backend for `metrics` crate","language":"Rust","stars":14,"topics":["metrics","prometheus","rust"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"[ metrics ] + [ prometheus ] = ❤️ ================================= \\ API Docs Changelog [ prometheus ] backend for [ metrics ] crate. Motivation [Rust] has at least two ecosystems regarding metrics collection: - One is based on the [ prometheus ] crate, focusing on delivering metrics to [Prometheus] (or its drop-in replacements like [VictoriaMetrics]). It provides a lot of [Prometheus]-specific capabilities and validates metrics strictly to meet the format used by [Prometheus]. - Another one is based on the [ metrics ] crate, being more generic and targeting a wider scope, rather than [Prometheus] only. It provides a convenient and ergonomic facade, allowing to work with metrics in the very similar way we do work with logs and traces via [ log ]/[ tracing ] ecosystems (and even [supports tracing::Span s for metrics labels][ metrics-tracing-context ]). As the result, some crates use [ prometheus ] crate for providing their metrics, and another crates do use [ metrics ] crate for that. Furthermore, [ prometheus ] and [ metrics ] crates are designed quite differently, making their composition a non-trivial task. This crate aims to mitigate this gap, allowing to combine both [ prometheus ] and [ metrics ] ecosystems in a single project. Alternatives If you're not obligated to deal with [ prometheus ] crate directly or via third-party crates which do use it, consider the [ metrics-exporter-prometheus ] crate, which provides a simple [Prometheus] backend for [ metrics ] facade, wi","default_branch":null,"files":null,"tree":[],"storefront":"/r/tyranron","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tyranron/metrics-prometheus-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."}