{"id":58286,"library":"metrics-exporter-prometheus","title":"Metrics Exporter Prometheus","description":"A metrics-compatible exporter for sending metrics to Prometheus.","status":"active","version":"0.18.1","language":"rust","source_language":null,"source_url":"https://github.com/metrics-rs/metrics","tags":["metrics","prometheus","monitoring","exporter"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nmetrics-exporter-prometheus = \"0.18.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add metrics-exporter-prometheus","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"PrometheusBuilder","correct":"use metrics_exporter_prometheus::PrometheusBuilder;"}],"quickstart":{"code":"use metrics_exporter_prometheus::PrometheusBuilder;\n\nfn main() {\n    let builder = PrometheusBuilder::new();\n    builder.install().unwrap();\n    metrics::counter!(\"requests\", 1);\n}","lang":"rust","description":"Set up a Prometheus exporter and record a metric."},"warnings":[{"fix":"Add metrics = \"0.23\" to your Cargo.toml.","message":"Requires the 'metrics' crate to be present for recording metrics.","severity":"gotcha","affected_versions":">=0.18.0"}],"env_vars":null,"search_vec":"'compat':7 'export':2,8,17 'metric':1,6,11,14 'metrics-compat':5 'monitor':16 'prometheus':3,13,15 'send':10","created_at":"2026-06-16T16:18:16.272153+00:00","updated_at":"2026-06-16T16:18:16.272153+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/metrics-rs/metrics","github":"https://github.com/metrics-rs/metrics","docs":"https://docs.rs/metrics-exporter-prometheus/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["observability"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}