supports querying Prometheus. The Grafana data source for Prometheus is included since Grafana 2.5.0 (2015-10-28).
The following shows an example Grafana dashboard which queries Prometheus for data:
To install Grafana see the .
By default, Grafana will be listening on http://localhost:3000. The default login is "admin" / "admin".
To create a Prometheus data source in Grafana:
http://localhost:9090/
)The following shows an example data source configuration:
Follow the standard way of adding a new Grafana graph. Then:
method
and status
labels of a returned query
result, separated by a dash, you could use the legend format string
{{method}} - {{status}}
.The following shows an example Prometheus graph configuration:
In Grafana 7.2 and later, the $__rate_interval
variable is
for use in the rate
and increase
functions.
Grafana.com maintains which can be downloaded and used with standalone instances of Grafana. Use the Grafana.com "Filter" option to browse dashboards for the "Prometheus" data source only.
You must currently manually edit the downloaded JSON files and correct the
datasource:
entries to reflect the Grafana data source name which you
chose for your Prometheus server. Use the "Dashboards" → "Home" → "Import"
option to import the edited dashboard file into your Grafana install.
This documentation is . Please help improve it by filing issues or pull requests.