prometheus_exporter
prometheus_exporter copied to clipboard
Helper libary to export prometheus metrics using tiny_http and rust-prometheus.
As per https://prometheus.io/docs/instrumenting/writing_exporters/#failed-scrapes it's acceptable to return a 500 error in cases where the metric is unavailable (e.g. I'm scraping a service that doesn't have it's own exporter, and it...
`internal_metrics` won't work with a custom registry currently need to figure out how to make that work. https://github.com/AlexanderThaller/prometheus_exporter/pull/26#issuecomment-1179570419
To use less threads and therefore less resources we could switch to tokio/hyper with a single thread instead of using tiny-http which will spawn many threads https://github.com/tiny-http/tiny-http/issues/205. The biggest problem...
Similar to the already existing start function but will suspend the current thread until a SIGTERM/SIGINT signal is received.
It would be nice to be able to configure the reexported prometheus crate via features in the current crate.
Howdy, I'm at a bit of a loss here and would love any help. I've attempted to move my project [monitord-exporter](https://github.com/cooperlees/monitord-exporter) to [tracing](https://crates.io/crates/tracing) for logging. I have a [PR](https://github.com/cooperlees/monitord-exporter/pull/14/files) that...
Are you open to adding supporting GET query string params to /metrics? It does feel like this depends on the move to hyper, as my very quick look @ tiny_http...
`wait_request` and `wait_duration` can be used to achieve two results at once: - on demand/periodic metric generation, - synchronization of metric updates, so that we never publish a set of...