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

SLA dates differ in Grafana and Zabbix #1595

Closed
konstantin-kornienko opened this issue Mar 23, 2023 · 1 comment
Closed

SLA dates differ in Grafana and Zabbix #1595

konstantin-kornienko opened this issue Mar 23, 2023 · 1 comment
Labels
Milestone

Comments

@konstantin-kornienko
Copy link

konstantin-kornienko commented Mar 23, 2023

Describe the bug
Tried to draw dashboard for a weekly SLA. Found out that time range for SLA is differs in Grafana and Zabbix.

What I tried to do - removed blocks in the file:
https://github.com/alexanderzobnin/grafana-zabbix/blob/master/src/datasource/responseHandler.ts

 if (i === 0) {
      timestamps.push(period.period_from * 1000);
    }

and

if (i === 0) {
        values[j].push(value);
      }

Recompiled the plugin and with these conditions - time ranges became correct. Maybe these conditions should solve some issues, but in my case, everything is working working correctly only without them ) Maybe this behavior can be parametrized

Screenshots
Please see screenshots.
grafana
zabbix

Software versions

Grafana Zabbix Grafana-Zabbix Plugin

| 9.4.7 | 6.0.10 | 4.3.0 |

@konstantin-kornienko
Copy link
Author

Now everything works as expected! Thanks for a light-speed fix!

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

No branches or pull requests

2 participants