Closed slashr closed 1 year ago
The log line
ts=2022-09-22T12:54:29.011098085Z caller=spanlogger.go:80 table-name=loki_index_19257 org_id=tenant-prod.example.com level=info msg="downloaded index set at query time" duration=45.652432384s
indicates that it took 45s to download the index from object storage. There is definitely a problem with the access to GCS.
Can you verify with gsutil
that you can access the index file.
The problem was not with Loki but with Promtail. We are adding some high cardinality labels to our log lines using Promtail. This is resulted in heavily indexed logs in the storage and Loki timed out when trying to fetch them.
Removing the high cardinality labels from the Promtail config fixed the issue for us.
Describe the bug Unable to add a Loki datasource to Grafana. It fails with the following error message "Loki: Cannot connect to Loki. 504. [object Object]"
To Reproduce Steps to reproduce the behavior:
Expected behavior Datasource should be connected with the success message "Data source connected and labels found."
Environment:
Screenshots, Promtail config, or terminal output Output of Loki Querier:
What's weird is our Staging tenant Datasource gets added to Grafana without any problems
Chronology of events:
The promtail configuration YAML is identical except for the tenant ID.