You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start the loki and enable multi-tenancy querier and configure a datasource in grafana with multiple tenants. (Using A|B format in X-Scope-OrgId header)
Navigate to Grafana Explore Home > Explore > Logs (Dont use traditional explore,select your loki multi-tenant datasource)
Expected behavior
Either Grafana Plugin or Loki should handle this to avoid throwing plugin error. Perhaps detected_labels for multi-tenant should not respond with 500.
Screenshots, Promtail config, or terminal output
Logs from Loki (read)
I am not sure where this issue should be posted either in Loki or in Grafana or in Plugin?
The text was updated successfully, but these errors were encountered:
akshaykrjain
changed the title
500 Error when Using Explore Logs with Multi-Tenant Loki in Grafana (v11.4.0) - Detected Labels API Call Fails
"too short binary" error while using Explore Logs with Multi-Tenant Loki.
Feb 17, 2025
Describe the bug
An error occurs when using the new “Grafana Explore Logs” feature with Loki running in multi-tenant mode. The plugin calls https://grafana.mycompany.net/api/datasources/uid/loki-global/resources/detected_labels? from the Grafana frontend, which in turn makes a request to https://loki.mycompany.net/loki/api/v1/detected_labels? and receives a 500 error from Loki.
Grafana shows this as "An error occurred within the plugin"
Versions-
• Grafana: v11.4.0 (b58701869e)
• Explore Log Plugin: v1.0.6
• Loki: v3.4.1
To Reproduce
Steps to reproduce the behavior:
Start the loki and enable multi-tenancy querier and configure a datasource in grafana with multiple tenants. (Using A|B format in X-Scope-OrgId header)
Navigate to Grafana Explore Home > Explore > Logs (Dont use traditional explore,select your loki multi-tenant datasource)
or call the Loki API directly
curl -i "https://loki.mycompany.net/loki/api/v1/detected_labels?query=&start=2025-02-13T09%3A16%3A57.260Z&end=2025-02-13T09%3A46%3A57.260Z" \ -H "Host: loki.svc.nepcloud.net" \ -H "X-Scope-OrgID: tenant-a|tenant-b"
it returns-
too short binary
Expected behavior
Either Grafana Plugin or Loki should handle this to avoid throwing plugin error. Perhaps detected_labels for multi-tenant should not respond with 500.
Screenshots, Promtail config, or terminal output
Logs from Loki (read)
I am not sure where this issue should be posted either in Loki or in Grafana or in Plugin?
The text was updated successfully, but these errors were encountered: