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

Ability to use Variables in Filters (regex) #36

Closed
endzyme opened this issue Jun 29, 2015 · 10 comments
Closed

Ability to use Variables in Filters (regex) #36

endzyme opened this issue Jun 29, 2015 · 10 comments

Comments

@endzyme
Copy link

endzyme commented Jun 29, 2015

Would be nice to be able to use custom template variables in the search filter section so you can graph multiple items and not just have to select one item from a dropdown.

@alexanderzobnin
Copy link
Collaborator

Yes, this is a good idea. Can you describe your case in detail?

@alexanderzobnin alexanderzobnin added this to the Grafana-Zabbix 2.1.0 milestone Jun 29, 2015
@endzyme
Copy link
Author

endzyme commented Jul 1, 2015

Sure thing! Here's the use case:

Today: We currently have a template dashboard that shows information about VPN servers. We'd like to be able to select multiple hosts instead of just a single host. [1]

This could be achieved by setting up a custom variable [2] and then selecting All on hosts and using the regexp filters [3].

Firstly there are obvious escaping problems (to avoid using $ as EOL) so that would have to be considered.

As an aside: this is a great plugin and truly augments visual data where zabbix's UI falls short - huge thank you and I owe you 🍻.

Image Ref [1]
screen shot 2015-07-01 at 2 51 05 pm

Image Ref [2]
screen shot 2015-07-01 at 2 51 39 pm

Image Ref [3]
screen shot 2015-07-01 at 2 52 03 pm

@alexanderzobnin
Copy link
Collaborator

I will add this feature in 2.1 plugin release. I need some consideration about how to use variables in regex. May be global option for the panel to enable this feature.

@alexanderzobnin
Copy link
Collaborator

Thanks for gratitude! Grafana is a really cool dashboard! Hope, this helps Zabbix became better.

@jbfavre
Copy link
Contributor

jbfavre commented Jul 4, 2015

can't wait for this feature too :)

Got many supervisord workers to monitor.
I got one Zabbix item per worker status (STOPPED, RUNNING, STARTING, FATAL, EXITED, ..).
I would like to automatically filter items to keep only those concerning a specific worker.

@alexanderzobnin
Copy link
Collaborator

@endzyme, @jbfavre Ok, I will add this feature very soon.

@alexanderzobnin
Copy link
Collaborator

Resolved. Now in develop branch.

@jbfavre
Copy link
Contributor

jbfavre commented Jul 6, 2015

Just pushed it on my server.... just works :)
Many thanks 👍 👍

@mingmings
Copy link

cool feature,like it~

alexanderzobnin added a commit that referenced this issue Jul 11, 2015
@alexanderzobnin alexanderzobnin modified the milestones: Grafana-Zabbix 2.0.0, Grafana-Zabbix 2.1.0 Jul 11, 2015
@endzyme
Copy link
Author

endzyme commented Jul 15, 2015

+1 thanks!

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

No branches or pull requests

4 participants