Grafana support for Prometheus

    The following shows an example Grafana dashboard which queries Prometheus for data:

    To install Grafana see the official Grafana documentation.

    Using

    To create a Prometheus data source in Grafana:

    1. Click on “Data Sources”.
    2. Click on “Add data source”.
    3. Select “Prometheus” as the type.
    4. Set the appropriate Prometheus server URL (for example, )
    5. Adjust other data source settings as desired (for example, choosing the right Access method).

    The following shows an example data source configuration:

    1. Click the graph title, then click “Edit”.
    2. Under the “Metrics” tab, select your Prometheus data source (bottom right).
    3. Enter any Prometheus expression into the “Query” field, while using the “Metric” field to lookup metrics via autocompletion.
    4. To format the legend names of time series, use the “Legend format” input. For example, to show only the and labels of a returned query result, separated by a dash, you could use the legend format string .
    5. Tune other graph settings until you have a working graph.

    The following shows an example Prometheus graph configuration:

    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 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.