Grafana datasource for Consul
This datasource lets you integrate key value data from Consul in Grafana dashboards.

Usage
The data can be used in table and single-stat panels. The following explanations are based on the example available in the example folder.
Adding the datasource
- In the side menu in the
Configurationsection you should find a link namedData Sources. - Click the
Add data sourcebutton in the top header. - Select
Consul. - Fill in the datasource name, the Consul address and the Consul token (or leave it empty)
- Click the
Save & Testbutton
Features
- Consul keys can be used as Dashboard variable values
- Numeric Consul keys can be retrieved directly and displayed in Singlestat panels
- Consul key/value pairs can be retrieved via Timeseries tags and displayed in Singlestat panels
- Consul key/value pairs can be displayed in Table panels.
Examples
Variables

This example shows how keys can be queried to use them as variables. This query retrieves all direct subkeys of registry/apiregistration.k8s.io/apiservices/. The subkeys are then matched via the regex and can then be used as variable values.
Singlestat Panel

This example shows how subkeys can be retrieved as tags. These tags can then be displayed in the Single Stat panel by defining a legend format. Note: This only works if Value / Stat in the Option tab is set to Name.
Table Panel

The final examples shows how key/value pairs can be displayed in tables. Every matching key of the query results in one row. Columns can then be retrieved relative from this key.
Grafana Cloud
Connect any plugin in Grafana Cloud.
- 150+ data source integrations
- Grafana Assistant - AI that correlates your data, builds queries, and answers questions
- 10k Prometheus metrics + 50 GB logs, traces, and profiles on the free tier
- ...and more
Insights
- Adoption
Running on 724 active Grafana instances.
- Activity
Last updated 24 Nov 2023.
0 releases in the past year.
- Queries
0 total queries served across all Grafana Cloud instances.
- Version
- 0.2.1
- Dependencies
- Grafana 7.3.x
- Developer
- sbueringer
Grafana Cloud
Connect any plugin in Grafana Cloud.
- 150+ data source integrations
- Grafana Assistant - AI that correlates your data, builds queries, and answers questions
- 10k Prometheus metrics + 50 GB logs, traces, and profiles on the free tier
- ...and more