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

[Metrics] Potential issue with grouping gauges w/ dimensions by week/month/year #1761

Open
jstanden opened this issue Jan 28, 2024 · 0 comments

Comments

@jstanden
Copy link
Owner

I think the issue here is we could be asking two different questions with averages for a gauge metric like cerb.tickets.open, which measures the number of tickets in each bucket at an interval (5min, hour, daily).

(1) What was the avg number of open tickets in the system (across all buckets) at a point in time? We would expect this to be the sum of all bucket averages at that time. e.g. There were 180 open tickets on average yesterday (30 + 50 + 20 + 80 in buckets A,B,C,D).

(2) What was the number of open tickets in an average bucket at a point in time? We would expect this to be the avg of all bucket averages. e.g. The average bucket had 45 open tickets yesterday (45 == (30+50+20+80)/4).

The original reports people wanted that led to the creation of metrics all dealt with (1), and that's a baked-in assumption.

It does seem like (1) is causing problems when we aggregate daily samples as a week/month/year.

I have some new test data going that I can validate the statistics with for that scenario. We probably need an explicit way to refer to magnitude (total) or central tendency (average).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant