Skip to content

Reset Prometheus gauge between each ticks#95

Merged
MaximeD merged 1 commit intomainfrom
mdemolin/reset
Jan 21, 2026
Merged

Reset Prometheus gauge between each ticks#95
MaximeD merged 1 commit intomainfrom
mdemolin/reset

Conversation

@MaximeD
Copy link
Copy Markdown
Member

@MaximeD MaximeD commented Jan 20, 2026

When changing a team, we had duplicated metrics: one with the old team name, and one with the new team name.

This is because the Load() method in only setting / updating metrics, but its not clearing the old ones. This patch is adding a Reset() at the beginning to ensure clearing of stale data.

When changing a team, we had duplicated metrics: one with the old team
name, and one with the new team name.

This is because the `Load()` method in only setting / updating metrics,
but its not clearing the old ones. This patch is adding a `Reset()` at
the beginning to ensure clearing of stale data.

Signed-off-by: Maxime Demolin <maxime_dev@demol.in>
@MaximeD
Copy link
Copy Markdown
Member Author

MaximeD commented Jan 20, 2026

#ee

@MaximeD MaximeD merged commit 331bb51 into main Jan 21, 2026
6 checks passed
@MaximeD MaximeD deleted the mdemolin/reset branch January 21, 2026 08:59
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