Skip to main content

Module metric_doc

Module metric_doc 

Source
Expand description

What each metric is, for the code that registers it and for the metrics reference in the documentation (see archive/PROJECT.md, Observability): one list per role, so the name and help text are written once, and a test per role checks the type and labels against a scrape.

Structs§

MetricDoc
One metric: the name it is registered under, its type, labels and help text.

Enums§

MetricKind
A metric’s type, as a scrape shows it.

Functions§

scrape_mismatches
What doesn’t match between docs and a scrape (the text format) of a registry under prefix that holds them, every label family having a member: a metric missing from the scrape or with another type, help text or label names, and a metric the scrape has but docs doesn’t. Empty when they match.