Skip to main content

Module info_metrics

Module info_metrics 

Source
Expand description

Prometheus *_info metrics describing catalog objects.

These follow the standard Prometheus “info” pattern (kube_pod_info style): one series per object, constant value 1, with descriptive labels. They give other metrics a stable group_left join target for resolving object IDs to names.

The metrics are periodically reconciled with the catalog by a background task (Coordinator::spawn_catalog_info_metrics_task, driven by an interval off the coordinator’s main loop. It rebuilds the series whenever the catalog’s transient revision changes, from the catalog. It’s okay if the info metrics are not exactly up to date and eventually consistent.

Structs§

CatalogInfoMetrics 🔒
*_info metrics for catalog objects, mirroring the in-memory catalog.

Constants§

FALLBACK_RECONCILE_INTERVAL 🔒
Fallback reconcile cadence: the re-poll cadence used while reconciliation is disabled (a zero CATALOG_INFO_METRICS_RECONCILE_INTERVAL), so it can be re-enabled at runtime.
RECONCILE_WARN_THRESHOLD 🔒
Reconciles that take longer than this are logged at warn level.

Functions§

new_series 🔒

Type Aliases§

InfoGauge 🔒