Technology
Grafana
Use Dash0 as a Prometheus-compatible data source in Grafana. Create custom dashboards with your telemetry data.
Overview
Using Dash0 with Grafana
Dash0 provides a Prometheus-compatible API that can be configured as a data source in Grafana, allowing you to create custom dashboards and visualizations using your Dash0 telemetry data.
Use Cases
- Easier Migration: Migrate step by step to Dash0. Onboard teams step by step.
Setup
Setup
This guide will walk you through setting up Grafana to use Dash0 as a Prometheus-compatible data source, allowing you to create custom dashboards with your telemetry data.
Step 1: Adding Dash0 as a Data Source
- Log in to your Grafana instance
- Navigate to Connections > Data Sources
- Click Add new data source
- Select Prometheus as the data source type
- Set the Prometheus server URL to
{{endpoint_api_prometheus}} - In the Authentication section, keep No Authentication
- In the HTTP headers section…
- Add an
Authorizationheader with the valueBearer {{token}} - Add a
Dash0-Datasetheader with the value{{dataset}}
- Add an
- Click Save & Test to verify the connection
Step 2: Using PromQL with Dash0
Dash0's Prometheus-compatible API supports all the PromQL queries you are used to from Dash0. Here are some examples to get you started (find more in the Dash0 documentation):
promql
# Span count per service
sum by(service_name) (increase({otel_metric_name = "dash0.spans"}[$__interval]) > 0)
# P95 span duration in milliseconds
histogram_quantile(0.95, sum by (service_name) (rate({otel_metric_name = "dash0.spans.duration"}[$__interval]))) * 1000
# Logs grouped by their severity
sum by (otel_log_severity_range) (increase({otel_metric_name = "dash0.logs"}[$__interval])) > 0