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

[Bug] Incorrect calculation of avg() in time serie reducer. #6879

Closed
bergquist opened this issue Dec 8, 2016 · 1 comment
Closed

[Bug] Incorrect calculation of avg() in time serie reducer. #6879

bergquist opened this issue Dec 8, 2016 · 1 comment
Assignees
Labels
area/alerting/evaluation Issues when evaluating alerts area/alerting Grafana Alerting prio/high Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone

Comments

@bergquist
Copy link
Contributor

The avg() reducer counted null values as 0 which makes calculated value of avg lower then it is.

ex
[1, 2, 3, null, null, null] would be reduced to 1. It should be reduced to 2

@bergquist bergquist added area/alerting Grafana Alerting area/alerting/evaluation Issues when evaluating alerts prio/high Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Dec 8, 2016
@bergquist bergquist added this to the 4.0.2 milestone Dec 8, 2016
@bergquist bergquist self-assigned this Dec 8, 2016
@bergquist
Copy link
Contributor Author

Closed by 6c9cf87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/alerting/evaluation Issues when evaluating alerts area/alerting Grafana Alerting prio/high Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

No branches or pull requests

1 participant