Loki data source returns `Data source connected, but no labels received`
IntermediateTroubleshootingGrafana dashboards and data sources
Answer
Likely causes → No logs have been ingested in the queried range, the X-Scope-OrgID tenant header is wrong/missing in multi-tenant Loki, or the URL points at the wrong component.
Diagnose →
curl -s -H 'X-Scope-OrgID: prod' http://loki-gateway/loki/api/v1/labels
Fix → Add the X-Scope-OrgID custom header in the data source, point to the gateway/query-frontend, and confirm agents are shipping.
Prevent → Provision tenants explicitly per data source.
More on Grafana dashboards and data sources
Every panel on a dashboard shows `No data`BeginnerGrafana data source test fails with `Bad Gateway` (HTTP 502)BeginnerData source test returns `Post "http://prometheus:9090/api/v1/query": dial tcp: lookup prometheus on 10.96.0.10:53: no such host`BeginnerGrafana shows `504 Gateway Timeout` on long-range queriesAdvancedGrafana behind a reverse proxy shows `If you're seeing this Grafana has failed to load its application files`BeginnerGrafana login loops back to the login page after successful OAuthIntermediate