Grafana-zabbix: Templates feature fails

Created on 6 Apr 2016  Â·  15Comments  Â·  Source: alexanderzobnin/grafana-zabbix

When adding a template parameter ‘$ Groups’ success,‘ $ Groups. $ Hosts. * ’failure

bug

Most helpful comment

If you use multi-value, even one value produce a bug. I'll merge fix for templates today and this will work.

All 15 comments

Can you show your template editor? And where are you use this variables?
See also dashboard example with template variables for groups and hosts:
http://play.grafana-zabbix.org/dashboard/db/template-linux-server

met the same issue.

Groups: *
Hosts: $Groups.*
Apps: $Groups.$Hosts.*

the result of Apps is none .....

截图

Seems a problem with All value... I'll check it.

qq 20160407192255

Does it works without multi-value enabled?

Disable Mutil-value/include All option, it works well.

qq 20160408104537
qq 20160408104809

Individually selected hosts template has no value ?

If you use multi-value, even one value produce a bug. I'll merge fix for templates today and this will work.

Thank You Alexander, we are waiting for this fix !

I think there is still a problem here. I have a template variable called $nodes and when I use it in the Item field as part of a regex like /$nodes.outgoing/ it works correctly only when $nodes is a single-value. When it is a multi-value like $nodes = "node1,node2" the Item regex above seems to ignore the '.outgoing' part and expands to everything that matches /$nodes/

Ok, I understand. Will check it.

Yes, it's really bug. Regex /$nodes.*outgoing/ will expand to /node1|node2.*outgoing/, but it must look like /(node1|node2).*outgoing/, right?

Was this page helpful?
0 / 5 - 0 ratings