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

Different collection intervals compatibility in Grafana 7.5.5 #1211

Closed
bojankezele opened this issue May 12, 2021 · 6 comments
Closed

Different collection intervals compatibility in Grafana 7.5.5 #1211

bojankezele opened this issue May 12, 2021 · 6 comments

Comments

@bojankezele
Copy link

Describe the bug
With Grafana 7.5.5 version, stacking option with Graph visualization is not working properly with different metric collection intervals.

Screenshot of the issue:
image

Screenshot of expected behavior
image

There's a workaround to use groupBy(5m, avg) to group all metrics with 5 minutes interval.

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
7.5.5 x.x.x 4.1.4
@alexanderzobnin
Copy link
Collaborator

Unfortunately, there's no easy solution for this problem, so moving the next release. The best way top fix it - add interpolation, but it's a bit tricky, and this release contains lots of changes, so dont want to add more complexity right now.

@alexanderzobnin
Copy link
Collaborator

Looks like the fix does no cover all possible cases, so I have to find better solution.

@alexanderzobnin alexanderzobnin modified the milestones: 4.2.2, 4.2.3 Aug 26, 2021
@k-korn
Copy link

k-korn commented Sep 8, 2021

I also have a use case affected by this issue: data is sent to Zabbix by external hardware sensors, at flexible intervals not controllable by Zabbix (but by these sensors).
If sensor value does not change, they send it to Zabbix every 15 minutes. But once the value starts to change, that interval can go down to 5 seconds, or be an arbitrary value in between 5 seconds and 15 minutes. So trying to align all values to some set interval will not work, as there is no common update interval.

@alexanderzobnin
Copy link
Collaborator

@k-korn yes, in this case I decided to perform it in a bit different way. I use interpolation (which original stacking algorithm used in Grafana) to find all common points and prepare series for proper stacking. This is an example of how it works:

Original Zabbix data:
Screenshot from 2021-09-15 13-51-53

Prepared for stacking:
Screenshot from 2021-09-15 13-52-01

@alexanderzobnin
Copy link
Collaborator

Closing this again since it's fixed by fcef21b

@borjasueiro
Copy link

borjasueiro commented Oct 7, 2021

The bug still exists at 4.2.4 version.When I try to stack values with different update interval it does not work correctly.
Screenshot of the issue:
image

Screenshot of expected behavior:
image

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

4 participants