Skip to content

registrar: export the snapshot content hash as a gauge VALUE so a superseded hash cannot linger in Prometheus #1329

Closed

Description

@bpalermo

Follow-up to #1322 (fixed in the rule by pairing on timestamp(), PR #1328). The root cause is that aether_registrar_snapshot_content{content_hash} carries the hash as a label: when the hash changes, the old series stops being reported but stays visible for Prometheus's 5-minute lookback, and the OTel Go SDK cannot send a staleness marker for an attribute set an observable gauge stopped reporting. A hash label on the revision gauge would have the same problem.

What would work: a gauge whose VALUE is the hash (the top 52 bits fit a float64 exactly), one series per replica, so divergence is count(count_values(...)) > 1 with no staleness trick. It is a new metric plus a rule migration (runbook, docs/observability/registrar-alerts.yml, the GitOps rule and its promtool tests), keeping the old series for one release.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions