This crate serves metrics for opentelemetry-prometheus
opentelemetry-prometheus
You can setup prometheus to poll the metrics on a timer.
All you have to do is add the crate and invoke:
rust prometheus_serve_metrics::init();
That's it!