grafana / grafana-zabbix

Zabbix plugin for Grafana dashboard
http://play.grafana-zabbix.org
Apache License 2.0
2.08k stars 460 forks source link

Incorrect '"bars" visualization when Zabbix's "Custom Invervals -> Scheduling" is used #1187

Open mbrekhov opened 3 years ago

mbrekhov commented 3 years ago

Hi,

Not sure if it is Grafana bug, or Zabbix-plugin.

Example 1

Here is an example how Zabbix interval is configured: image

This is correct visualization(24h): image

But when I change to 2d it is showing up incorrectly: image

But I've found solution how to fix this on client side. Need to set "Min interval": image

And now the same 2d is showing up correctly: image

Example 2:

24 hours in Grafana: image

2days in Grafana(now-2d): image

3 days in Grafana(now-3d): image

Also I'm able to fix this by using sum(5m) function: image

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
7.5.1 5.2.6 4.1.4
mbrekhov commented 3 years ago

It seems that the issue is not relates to "Custom Invervals". I observe the same behavior in "usual" intervals too.

Looks like "data alignment" is the root cause of the issue.

alexanderzobnin commented 3 years ago

Yes, I think you're right - this is related to data alignment (in some cases it uses interval detection). I'll take a look.

alexanderzobnin commented 3 years ago

@mbrekhov could you test this against the latest version?

mbrekhov commented 3 years ago

I cannot due to incompatibility of this plugin with our Grafana's version (7.5.x)