grafana / grafana-zabbix

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

Global plug-in variables ("$__zbx") stop working when using more than one Function #1885

Open isaqueprofeta opened 1 week ago

isaqueprofeta commented 1 week ago

Describe the bug On the Functions scope, global plug-in variables ("$zbx") stop working when using more than one Function. If you add a aggregatedBy() or other functions, Grafana will output a string of "$zbx" instead of the value.

Expected behavior When using setAlias or replaceAlias with "$__zbx" I want to see the value of the Global variable.

Screenshots

Only using setAlias works:

Image

When adding another Aggregation function to the stack, it stops working:

Image

Network data

Software versions

Used https://play.grafana-zabbix.org/ for tests.

isaqueprofeta commented 1 week ago

Pinging @yesoreyeram since the pipeline failed on github for the "OSS Big Tent team project"