Hello, if I try to create a Loki explore query and I want to select a label, the UI dropdown only displays a subset of the available labels.
Even though I can see (via the browser developer tools) that all the labels are returned in the api/datasources/uid/.../resources/labels
HTTP query.
The exact same behavior can be seen when using the Label Browser.
What could be the issue here?
The labels were being properly displayed until about a week ago.
FYI: We are using Grafana Cloud.
Do the logs show those labels when querying in the explorer?
What if you put in a manual query such as {__aws_cloudwatch_owner=~",+"}
, does it return anything? Does it return from API?
I try not to use any label with leading __
. You might consider removing those when sending logs to Loki and see if that helps.
Interesting. I am not sure, haven’t seen this before, hopefully others can chime in.
What changed between when it was working to now? If you are using Grafana Cloud you might also consider reaching out to support.
Unfortunately nothing has changed from our side, there might have been a Grafana Cloud update, but I cannot be certain, nobody has any recollection when was the last time the labels have been working correctly.
This looks like an issue in 11.4 which was fixed in 11.5. If you’re using cloud you’ve probably already gotten the fix.
grafana:main
← grafana:svennergr/hide-only-certain-labels
opened 01:55PM - 09 Jan 25 UTC
**What is this feature?**
We realised that hiding every label starting with `… __` might hide too many labels. Such as those labels used in [lambda-promtail](https://grafana.com/docs/loki/latest/send-data/lambda-promtail/). This PR changes the behavior to only hide the following labels:
- `__aggregrated_metric__`
- `__tenant_id__ `
- `__stream_shard__ `
Internal ref: https://raintank-corp.slack.com/archives/C9T1FLN9K/p1736127432369589