Skip to main content

Module metrics

Module metrics 

Source
Expand description

Descriptions of the metrics this crate records.

Applications that install a [metrics] recorder call describe right after installing it, so that exporters can document each metric, for example in Prometheus # HELP lines. They also call register_failure_counters, so that exporters publish the failure counters before the first failure.

Constants§

FAILURE_COUNTERS
The counters of signatures and shielded bundles in batches that failed verification.
LABELS
The label keys of each labelled metric this crate records.

Functions§

describe
Describes every metric this crate records to the installed [metrics] recorder.
register_failure_counters
Registers every counter in FAILURE_COUNTERS with the installed [metrics] recorder, without changing its value, so that exporters publish it at zero before the first failure.