Grafana dashboards provide a powerful and flexible way to visualize and monitor the
performance and health of your Presto (Java), Presto (C++), and
Spark engines. This guide outlines how to import default dashboards, apply filters, and customize
them to suit your observability needs.
Before you begin
Before importing dashboards, make sure:
- A Prometheus data source is configured in Grafana. Refer to Grafana
data sources documentation.
- Required metrics are available from the data source.
Procedure
Follow the steps to create default dashboards in Grafana UI for
OpenTelemetry data:
- Importing the default JSON template
- After downloading the required JSON dashboard templates:
- In the Grafana UI, navigate to Home - Dashboards - New - Import
Dashboard.
- Upload the dashboard JSON file.
- Select the appropriate Prometheus data source.
- After import, configure the filter instanceId by selecting the
instance_id from the drop down and EngineId by selecting the
engine ID (labeled as podUid) for your engine.
- Adding filters or Grafana variables
To add a new variable:
- Open the dashboard.
- Click the gear icon and select Dashboard
Settings.
- Navigate to Variables and select Add
variable.
- Choose a variable type from the list (Query,
Custom, Constant).
- Update the required fields and save.
- Customizing dashboards
You can modify dashboard panels to better visualize your data:
- Add new panels with custom queries and visualizations.
- Edit existing panels to change metrics, queries, or visual settings.
- Rearrange panels for clarity.
- Update legends and labels.