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

dashboard: fix Prometheus TDG moving average #238

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

DifferentialOrange
Copy link
Member

Before this patch, Prometheus average panels (histogram or summary metric_sum / metric_count) were displaying instance runtime average info. This info is rather useless since, in case of instance lifetime being longer than several dozens of metrics collect intervals (which happens often), computed average becomes almost constant. Prometheus itself advises to use moving average for this.

Before (customer screenshot):
image

After (customer screenshot):
image

InfluxDB panels already implement moving averages, so there's no need to update them.

  1. https://prometheus.io/docs/practices/histograms/#count-and-sum-of-observations

Closes #237

Before this patch, Prometheus average panels (histogram or summary
`metric_sum / metric_count`) were displaying instance runtime average
info. This info is rather useless since, in case of instance lifetime
being longer than several dozens of metrics collect intervals (which
happens often), computed average becomes almost constant. Prometheus
itself advises to use moving average for this.

InfluxDB panels already implement moving averages, so there's no need
to update them.

1. https://prometheus.io/docs/practices/histograms/#count-and-sum-of-observations

Closes #237
@DifferentialOrange DifferentialOrange merged commit d4288a1 into master Dec 6, 2024
1 check passed
@DifferentialOrange DifferentialOrange deleted the DifferentialOrange/gh-237-fix-rate branch December 6, 2024 13:24
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.

Use moving average instead of overall one
3 participants