Skip to content

Conversation

@emschwartz
Copy link
Contributor

When the version switches, we observed a problem where Prometheus would keep the value of the old gauge in memory and return it for the query using the build_info metric. This is a problem with our group_left query because Prometheus would complain that there are multiple matching label sets (the old and new version info).

Adding the last_over_time function seems to solve this because it seems to get rid of the old gauge value as soon as it no longer appears in the scrape.

@emschwartz emschwartz requested a review from mellowagain April 26, 2023 15:55
@emschwartz emschwartz merged commit 004104d into main Apr 26, 2023
@emschwartz emschwartz deleted the fix-build-info branch April 26, 2023 17:44
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