Skip to content

Connect Grafana

This guide shows you how to connect Grafana datasources to canardstack for stored metrics, logs, and traces.

Use these settings for each datasource:

SignalDatasource typeURL
MetricsPrometheushttp://localhost:9090
LogsLokihttp://localhost:9090
TracesTempohttp://localhost:9090

Each datasource must send:

Authorization: Bearer dev-canardstack-key

For Tempo trace-to-logs, point Tempo at the canardstack Loki datasource and filter by trace ID.

After data is visible in DuckLake, these should return successful JSON responses:

Terminal window
curl -sS -H 'Authorization: Bearer dev-canardstack-key' \
http://127.0.0.1:9090/api/v1/labels
curl -sS -H 'Authorization: Bearer dev-canardstack-key' \
http://127.0.0.1:9090/loki/api/v1/label/service_name/values
curl -sS -H 'Authorization: Bearer dev-canardstack-key' \
http://127.0.0.1:9090/api/search/tags

The query APIs are compatibility subsets. Use explicit selectors, short time ranges, and panel limits. canardstack is not a full PromQL, LogQL, TraceQL, Prometheus, Loki, or Tempo implementation.