Skip to content

Conversation

@dt
Copy link
Contributor

@dt dt commented Nov 25, 2025

Typically only the node actively running the poller is expected to export non-zero values for poller-maintained metrics; if a node is not actively running the poller it should export zeros, not stale values last set when it was last running it.

This change adds on-exit calls to each of the tasks in the poller to let them zero out the metrics they each are responsible for updating when running.

Release note: none.
Epic: none.

@dt dt requested a review from jeffswenson November 25, 2025 16:19
@dt dt requested review from a team as code owners November 25, 2025 16:19
@blathers-crl
Copy link

blathers-crl bot commented Nov 25, 2025

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Typically only the node actively running the poller is expected to export non-zero values
for poller-maintained metrics; if a node is not *actively* running the poller it should
export zeros, not stale values last set when it was last running it.

This change adds on-exit calls to each of the tasks in the poller to let them zero out
the metrics they each are responsible for updating when running.

Release note: none.
Epic: none.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants