Grafana/Prometheus dynamic template variables

1,675 views
Skip to first unread message

kpo...@aerospike.com

unread,
May 19, 2015, 4:28:40 AM5/19/15
to prometheus...@googlegroups.com, Thomas Lopatic
I am looking into using Grafana with Prometheus. I would like have templated dashboards where the values of the template variable are dynamically determined from Prometheus labels. Is there currently a way to do this?

Julius Volz

unread,
May 19, 2015, 6:45:37 AM5/19/15
to kpo...@aerospike.com, prometheus-developers, Thomas Lopatic
Hi,

Since we're using PromDash at SC, we don't have too much experience with the Grafana/Prometheus combination ourselves, but there have been two (merged) PRs in grafana-plugins that added or improved dynamic templating for the Prometheus data source for Grafana:

- "Implemented metricFindQuery() to enable templating by query for prometheus": https://github.com/grafana/grafana-plugins/pull/16
- "Improve Templated dashboard, Panel repeat support, etc": https://github.com/grafana/grafana-plugins/pull/21

Maybe looking over these will be helpful - otherwise consider contacting the PR authors for more information.

For general docs on how to set up Grafana with the early Prometheus support, see http://prometheus.io/docs/visualization/grafana/.

Cheers,
Julius

On Tue, May 19, 2015 at 10:28 AM, <kpo...@aerospike.com> wrote:
I am looking into using Grafana with Prometheus. I would like have templated dashboards where the values of the template variable are dynamically determined from Prometheus labels. Is there currently a way to do this?

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages