{"repo":"chainbound/prometric","free":true,"listed":false,"github":"https://github.com/chainbound/prometric","clone":"git clone https://github.com/chainbound/prometric.git","description":"An attribute macro for generating and using embedded Prometheus metrics with an ergonomic API.","language":"Rust","stars":28,"topics":["metrics","prometheus","rust"],"license":"MIT","category":"analytics","readme_excerpt":"prometric A library for ergonomically generating and using embedded Prometheus metrics in Rust. Inspired by metrics-derive, but works directly with prometheus instead of metrics, and supports dynamic labels. Crate crates.io docs.rs ------------------ --------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------ prometric prometric-derive Usage Basic Usage See basic usage example for usage. Here's a reduced example usage: Sample Output TODO: document how to obtain sample output Static Metrics You can also generate a static LazyLock instance by using the static attribute. When enabled, the builder methods and Default implementation are made private, ensuring the only way to access the metrics is through the static instance: See static metrics example for usage. Exporting Metrics An HTTP exporter is provided by [ prometric::exporter::ExporterBuilder ]. See exporter example for usage. Process Metrics When the process feature is enabled, the ProcessCollector can be used to collect metrics about the current process. Sample Output","default_branch":null,"files":null,"tree":[],"storefront":"/r/chainbound","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/chainbound/prometric/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."}