{"repo":"Hanaasagi/tokio-metrics-collector","free":true,"listed":false,"github":"https://github.com/Hanaasagi/tokio-metrics-collector","clone":"git clone https://github.com/Hanaasagi/tokio-metrics-collector.git","description":"Provides utilities for collecting Prometheus-compatible metrics from Tokio runtime and tasks.","language":"Rust","stars":37,"topics":["collector","metrics","prometheus","tokio"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"Tokio metrics collector for Prometheus [![tokio-metrics-collector on GitHub Action][action-image]][action] [![codecov][codecov-image]][codecov] [![tokio-metrics-collector on crates.io][cratesio-image]][cratesio] [![tokio-metrics-collector on docs.rs][docsrs-image]][docsrs] [action-image]: https://github.com/Hanaasagi/tokio-metrics-collector/actions/workflows/ci.yaml/badge.svg [action]: https://github.com/Hanaasagi/tokio-metrics-collector/actions/workflows/ci.yaml [codecov-image]: https://codecov.io/gh/Hanaasagi/tokio-metrics-collector/branch/master/graph/badge.svg?token=TP67FTFT1K [codecov]: https://codecov.io/gh/Hanaasagi/tokio-metrics-collector [cratesio-image]: https://img.shields.io/crates/v/tokio-metrics-collector.svg [cratesio]: https://crates.io/crates/tokio-metrics-collector [docsrs-image]: https://docs.rs/tokio-metrics-collector/badge.svg [docsrs]: https://docs.rs/tokio-metrics-collector Provides utilities for collecting Prometheus-compatible metrics from Tokio runtime and tasks. Documentation: - API reference (docs.rs) QuickStart And a http server example, you can find in examples/server.rs . Runtime Metrics This unstable functionality requires tokio unstable , and the rt crate feature. To enable tokio unstable , the --cfg tokio unstable must be passed to rustc when compiling. You can do this by setting the RUSTFLAGS environment variable before compiling your application; e.g.: Or, by creating the file .cargo/config.toml in the root directory of your crate. If you'r","default_branch":null,"files":null,"tree":[],"storefront":"/r/Hanaasagi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Hanaasagi/tokio-metrics-collector/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."}