grafana / grafana-zabbix

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

Dashboard Variables with Zabbix Datasource "TypeError: Invalid Version" #1385

Open redsux opened 2 years ago

redsux commented 2 years ago

Describe the bug We are trying to setup some dynamic variables based on a Zabbix datasource.
Grafana is failing (An unexpected error happened) when changing the Query Type of a variable.

How to reproduce
Create/Edit new Dashboard.
Open its settings and go into "Variables" section. Add a variable, choose a Zabbix Datasource. Play with the Query Type field.

Screenshots A screenshot do not seem to be the better way, i'm adding some copy/paste of our issues shown by Grafana.

An unexpected error happened

TypeError: Invalid Version: 4.0.3 (2018-12-21)
t@https://GRAFANA.HOST.DOMAIN/public/plugins/alexanderzobnin-zabbix-app/datasource-zabbix/module.js:1:122629
div
div
div
c@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:792:912
u@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:792:1481
div
div
c@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:792:912
u@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:792:1481
div
div
c@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:792:912
u@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:792:1481
W@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:5929:27757
v@https://GRAFANA.HOST.DOMAIN/public/build/633.fab5d6bbd438adca1160.js:2:971570
div
div
c@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:792:912
u@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:792:1481
form
div
B@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:4558:2304
v@https://GRAFANA.HOST.DOMAIN/public/build/633.fab5d6bbd438adca1160.js:2:971570
div
Se@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:4579:1288
v@https://GRAFANA.HOST.DOMAIN/public/build/633.fab5d6bbd438adca1160.js:2:971570
div
div
div
div
div
t@https://GRAFANA.HOST.DOMAIN/public/build/633.fab5d6bbd438adca1160.js:2:657031
u@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:262:1027
div
ta@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:4592:295
div
Mi@https://GRAFANA.HOST.DOMAIN/public/build/DashboardPage.fab5d6bbd438adca1160.js:574:3581
DashboardPage
v@https://GRAFANA.HOST.DOMAIN/public/build/633.fab5d6bbd438adca1160.js:2:971570
n@https://GRAFANA.HOST.DOMAIN/public/build/633.fab5d6bbd438adca1160.js:2:942013
zi@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:6393:193
t@https://GRAFANA.HOST.DOMAIN/public/build/633.fab5d6bbd438adca1160.js:2:989568
t@https://GRAFANA.HOST.DOMAIN/public/build/633.fab5d6bbd438adca1160.js:2:991589
main
t@https://GRAFANA.HOST.DOMAIN/public/build/633.fab5d6bbd438adca1160.js:2:986186
div
Ws@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:2156:1022
./public/app/core/utils/ConfigProvider.tsx/d<@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:4480:26183
Sl@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:2868:458
Tl@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:2868:1006
l@https://GRAFANA.HOST.DOMAIN/public/build/633.fab5d6bbd438adca1160.js:2:969086
Oo@https://GRAFANA.HOST.DOMAIN/public/build/7095.fab5d6bbd438adca1160.js:6473:384

We already have the same JS files listed in traces, just the "version" will change regarding which ZBX Datasource we are using.

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
8.3.2 3.4.15 4.2.4
8.3.2 4.0.3 4.2.4
8.3.2 4.4.10 4.2.0
8.3.2 4.4.10 4.2.1
8.3.2 4.4.10 4.2.2
8.3.2 4.4.10 4.2.3
8.3.2 4.4.10 4.2.4
8.3.2 5.0.10 4.2.0
8.3.2 5.0.10 4.2.1
8.3.2 5.0.10 4.2.2
8.3.2 5.0.10 4.2.3
8.3.2 5.0.10 4.2.4
8.3.4 3.4.15 4.2.4
8.3.4 4.0.3 4.2.4
8.3.4 4.4.10 4.2.4
8.3.4 5.0.10 4.2.4

Grafana-Zabbix Plugin in version 4.1.5 do not have this issue.

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had activity in the last 2 years. It will be closed in 60 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!