pub struct PrometheusHandle { /* private fields */ }
Expand description
Handle for accessing metrics stored via PrometheusRecorder
.
In certain scenarios, it may be necessary to directly handle requests that would otherwise be
handled directly by the HTTP listener, or push gateway background task. PrometheusHandle
allows rendering a snapshot of the current metrics stored by an installed PrometheusRecorder
as a payload conforming to the Prometheus exposition format.
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PrometheusHandle
impl Send for PrometheusHandle
impl Sync for PrometheusHandle
impl Unpin for PrometheusHandle
impl !UnwindSafe for PrometheusHandle
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more