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

Enable query for item value at templates #417

Closed
1 of 3 tasks
daianmartinho opened this issue Jun 28, 2017 · 6 comments
Closed
1 of 3 tasks

Enable query for item value at templates #417

daianmartinho opened this issue Jun 28, 2017 · 6 comments

Comments

@daianmartinho
Copy link

I'm submitting a ...

  • Bug report
  • Feature request
  • Question / Support request

Can we query for item value at templates? I need to use the value of an item A for query an item B.

@alexanderzobnin
Copy link
Collaborator

Sometimes it may be useful. I should find a good way for this type of query.

@jason913
Copy link

jason913 commented Jul 5, 2017

This would be very very useful for correlation data.

@jpowers-j2
Copy link

This has a valuable use case in conjunction with other plugins, the grafana-cloudwatch plugin can look things up by instance-id but presently there are cases where it can't look up the instance-id itself, for example "a list of the instance-ids attached to this elb or autoscaling group". I'd like to be able to push that info back into zabbix from the host itself, and then use the string data in template variables to query things in aws with repeat graphs and such.

being able to query item values right into template variables would be great for this

@thechile
Copy link

@alexanderzobnin any chance this will get worked on soon ? I have service that is made up of 20 individual microservices that are duplicated on multiple servers and scale horizontally as needed.

I wanted to have a graph panel per process showing its memory usage that we collect using Beats.

To avoid manually configuring this i wanted to template it and 'Repeat for each value'

So I have added the variable using a query to auto generate the list but when i try to use the variable in the Item field of the panel it does nothing.

@alexanderzobnin
Copy link
Collaborator

I think it's possible with new Grafana variable query editor feature. So I'll try to implement this in next minor version.
Example of variable query editor:
grafana/grafana#13561
grafana/grafana#14007

@alexanderzobnin alexanderzobnin added this to the 3.11 milestone Mar 12, 2019
@alexanderzobnin
Copy link
Collaborator

Created #705 as well

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

5 participants