Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use Histogram to prevent stale metrics being scraped #332

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

morgsmccauley
Copy link
Collaborator

@morgsmccauley morgsmccauley commented Oct 26, 2023

This PR migrates the EXECUTION_DURATION to Histogram from Gauge. With Gauges, the previously recorded metric value will continue to be scraped creating a flat-line graph in Grafana. Histograms allow us to better approximate the metric over a specific time range, removing these flat-lines.

Resolves #208

@morgsmccauley morgsmccauley requested a review from a team as a code owner October 26, 2023 01:49
@morgsmccauley morgsmccauley linked an issue Oct 26, 2023 that may be closed by this pull request
@morgsmccauley morgsmccauley merged commit 0c9fa36 into main Oct 26, 2023
3 checks passed
@morgsmccauley morgsmccauley deleted the 208-filter-duplicate-duration-metrics-1 branch October 26, 2023 02:02
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.

Filter duplicate duration metrics
1 participant