The software described in this documentation is either no longer supported or is in extended support.
Oracle recommends that you upgrade to a current supported release.

3.3 Creating a Dashboard

In Grafana, a dashboard is how you monitor and visualize the metrics that are retrieved from a data source such as Prometheus. The dashboard is a grouping of one or more panels, prearranged into rows.

In this section, you create a dashboard and select the Graph panel for it. The Graph panel is the main panel in Grafana, and has a rich set of graphing options.

As part of creating your dashboard, you use the query editor feature to formulate a query for the dashboard. A query is used to fine-tune how the metrics for Prometheus appear in Grafana. For this procedure, you specify the prometheus_engine_query_duration_seconds query, which allows Grafana to graph the metrics that Prometheus collects about itself.

  1. In the Home Dashboard page, click the Create your first dashboard icon.

  2. In the New dashboard page, click the Choose Visualization icon.

  3. In the Visualization field, enter Graph.

  4. Click the Queries icon. This icon appears to the left of the Visualization field and looks like a database.

  5. In the Query field, select the Prometheus data source that was added as part of deploying Grafana.

  6. In the query editor field, which appears to the right of the Metrics drop-down menu, enter the prometheus_engine_query_duration_seconds query, and then click the Disable/enable query button. This button appears to the right of the query that you entered and looks like an eye.

  7. Verify that data associated with the metric appears, and then click Save dashboard.

  8. In the Save As dialog box, give the dashboard a new name, select a folder location for the dashboard, and then click Save.

  9. Verify that you see the Dashboard saved status message and a graph that displays information about the metric that you entered.