rust-prometheus
rust-prometheus copied to clipboard
Prometheus instrumentation library for Rust applications
Double check that this is the recommended approach in client_golang, but it *is* what they do for the `ProcessCollector`: https://github.com/prometheus/client_golang/blob/master/prometheus/process_collector.go#L125-L130
Hi! The data I'd like to put into `Histogram` comes in aggregated form. This includes bucket bounds, counts, sum and total count. I do not have individual observations, and cannot...
I'd like to have a gauge that precisely tracks a peak value of another gauge (I have a gauge that goes up and down, and its temporary peak value is...
**Is your feature request related to a problem? Please describe.** I have an HTTP server built using Hyper. One of the metrics I track is the number of active connections...
Imagine the following static metric generation: ```rust make_static_metric! { label_enum Methods { post, get, } struct MyStaticCounterVec: Counter { "method" => Methods, } } ``` This will roughly expand to:...
This allows (among other things) `histogram_opts!` to take the same kinds of types as `opts!`. E.g. to replace this: ```rust let status = String::from("200"); histogram_opts!( ... labels! {"status".to_string() => status.clone()}...
Now using metrics across multi threads has a low performance, so we have to use local metric and then flush to the global metric sometimes, it is not convenient, maybe...
Your FOSSA integration was successful! Attached in this PR is a badge and license report to track scan status in your README. Below are docs for integrating FOSSA license checks...
I have just started using this crate and am new to Prometheus. It took me a while to figure out what exporters actually are. I believe this crate doesn't have...
Currently `register` and `unregister` methods of `Registry` take `Box`, however in practice this means that most calls of this method will end up looking like this: ```rust let metric =...