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

Annotations with template variable, trigger field bug #428

Closed
1 of 3 tasks
h1tman23 opened this issue Jul 17, 2017 · 3 comments
Closed
1 of 3 tasks

Annotations with template variable, trigger field bug #428

h1tman23 opened this issue Jul 17, 2017 · 3 comments

Comments

@h1tman23
Copy link

I'm submitting a ...

  • Bug report
  • Feature requestdd
  • Question / Support request

If you don't send bug report, remove sections below

For bug report please include this information:

Software Versions

Grafana Zabbix Grafana-Zabbix Plugin
4.3.1 3.0.9 3.5.1

What did you do?

Annotations with template variable.

What was the expected result?

When I create Annotations with template variable and put that variable in Trigger field it does not work properly (no results found), but with Group, Host or Application fields everything is OK variable work.

What happened instead?

No results found when I put variable in Trigger field.

@alexanderzobnin
Copy link
Collaborator

Do you use multi-value variables? Try to wrap variable in regex: /$myvar/.

@h1tman23
Copy link
Author

h1tman23 commented Jul 18, 2017

Nothing helps. Simple example:
I create custom variable in Templating: Name - myvar, Values separated by comma - Errors. Then I put that variable in Application field in regex /.*$myvar.*/ everything is OK.
annotation

If put the save variable in Trigger field in regex /.*$myvar.*/ annotations disappear.
no_annotations

If I put Errors instead of $myvar ---> /.*Errors.*/ then annotations appear again. So in my situation variables does not work in Trigger field.

In this case I do not use multi-value variables, I tried to mark this option but it did not change anything.

@alexanderzobnin
Copy link
Collaborator

Yes, confirmed.

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

2 participants