Crates.io | prometheus-serve-metrics |
lib.rs | prometheus-serve-metrics |
version | 0.1.4 |
source | src |
created_at | 2022-06-03 16:17:05.16545 |
updated_at | 2022-06-03 20:52:43.689568 |
description | captures opentelemetry metrics for prometheus and serves those metrics on a simple http server |
homepage | |
repository | https://github.com/uberscott/prometheus-serve-metrics |
max_upload_size | |
id | 599327 |
size | 6,049 |
This crate serves metrics for opentelemetry-prometheus
You can setup prometheus to poll the metrics on a timer.
All you have to do is add the crate and invoke:
prometheus_serve_metrics::init();
That's it!