Skip to content

fix(IDX): sync Prometheus scraping targets with NNS registry#9297

Open
pietrodimarco-dfinity wants to merge 2 commits intomasterfrom
pmarco/sync-prometheus-registry
Open

fix(IDX): sync Prometheus scraping targets with NNS registry#9297
pietrodimarco-dfinity wants to merge 2 commits intomasterfrom
pmarco/sync-prometheus-registry

Conversation

@pietrodimarco-dfinity
Copy link
Contributor

@pietrodimarco-dfinity pietrodimarco-dfinity commented Mar 10, 2026

Summary

  • Sync the local registry store with the NNS in sync_with_prometheus before generating Prometheus scraping targets

The metrics_sync_task periodically generates Prometheus scraping target
files from the local registry store, but this store was never re-synced
with the NNS after initial setup. When new subnets/nodes were added via
ic-admin, the local store remained stale and Prometheus never discovered
the new targets.

Sync the local registry with the NNS before taking the topology snapshot
so that dynamically added subnets and nodes appear in Grafana.

Made-with: Cursor
@pietrodimarco-dfinity pietrodimarco-dfinity requested a review from a team as a code owner March 10, 2026 17:10
@github-actions github-actions bot added the fix label Mar 10, 2026
@github-actions github-actions bot added the @idx label Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant