On This Page

Home / Search/ Metrics (Preview)/Query Metrics from Grafana

Query Metrics from Grafana ​

Preview Feature ​

Cribl is still developing this Preview feature. We don’t recommend using it in a production environment, because the feature might not be fully tested or optimized for performance, and related documentation could be incomplete.

Please continue to submit feedback through normal Cribl support channels, but assistance might be limited while the feature remains in Preview.

Connect Grafana to a metrics Dataset as a standard Prometheus data source.


Connect Grafana to a Metrics Dataset ​

Each metrics Dataset exposes a Prometheus-compatible query endpoint. In Grafana, add this endpoint as a standard Prometheus data source to query your metrics. This is separate from the Cribl Search plugin for Grafana, which runs Cribl Search queries in Grafana - the metrics endpoint instead connects to Grafana as a native Prometheus data source. To import Grafana Dashboards into Cribl Search, see Migrate from Grafana.

To connect Grafana to a metrics Dataset:

  1. In the metrics Dataset configuration, copy the Prometheus compatible endpoint URL. On the Query API Access tab, set the Auth type to None or Basic. For Basic, note the Username and Password.
  2. In Grafana, select Connections > Data sources > Add data source > Prometheus.
  3. In Prometheus server URL, paste the Prometheus compatible endpoint.
  4. Match the Dataset’s authentication: if the Dataset uses Basic, under Authentication select Basic authentication and enter the Username and Password from the Query API Access tab. If the Dataset’s Auth type is None, leave authentication off.
  5. Select Save & test.
  6. Query your metrics with standard PromQL against the Dataset’s metric names, for example rate(http_requests_total[5m]).

Member Permissions don’t govern the Prometheus compatible endpoint. Access to it comes from the Dataset’s Query API Access configuration, so removing a Member’s Permission on the metrics Dataset doesn’t close the endpoint for them. To restrict the endpoint, change its Auth type or rotate the Basic credentials.

Next Steps ​