Skip to main content

Crate rustlavel_metrics

Crate rustlavel_metrics 

Source
Expand description

rustlavel-metrics: Prometheus metrics, gathered from what the framework already reports.

Nothing has to be instrumented twice. Every package dispatches on the instrumentation bus; this listens and keeps counters and histograms, and serves them in the text format Prometheus scrapes.

ⓘ
App::new()?.plugin(Metrics::default())   // exposes /metrics

Structs§

Metrics
Exposes /metrics and starts collecting.
Registry
The collected metrics, cheap to clone.

Constants§

BUCKETS
The bucket boundaries, in seconds.