{"repo":"sd2k/rocket_prometheus","free":true,"listed":false,"github":"https://github.com/sd2k/rocket_prometheus","clone":"git clone https://github.com/sd2k/rocket_prometheus.git","description":"Prometheus fairing and handler for Rocket","language":"Rust","stars":49,"topics":["metrics","prometheus","rocket","rust"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"Rocket Prometheus Prometheus instrumentation for Rocket applications. Usage Add this crate to your Cargo.toml alongside Rocket 0.5.0: Then attach and mount a PrometheusMetrics instance to your Rocket app: This will expose metrics like this at the /metrics endpoint of your application: Metrics By default this crate tracks two metrics: - rocket http requests total (labels: endpoint, method, status): the total number of HTTP requests handled by Rocket. - rocket http requests duration seconds (labels: endpoint, method, status): the request duration for all HTTP requests handled by Rocket. The 'rocket' prefix of these metrics can be changed by setting the ROCKET PROMETHEUS NAMESPACE environment variable. Custom Metrics Further metrics can be tracked by registering them with the registry of the PrometheusMetrics instance:","default_branch":null,"files":null,"tree":[],"storefront":"/r/sd2k","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sd2k/rocket_prometheus/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."}