Can you try to use an API call to list the labels and see if that reflect the same results? I unfortunately haven’t upgraded to 3.0, but if you can easily reproduce it might be a good idea to open a bug in github with repro steps.
Can you come up with a scenario that can be used to reproduce your error? I just deployed a test Loki 3 cluster, and I am unable to reproduce this. What I’d like from you:
Give some example log lines that can be used for injection.
Example queries that can demonstrate the problem.
So I can follow the same steps and see if this is indeed an issue.
Hi,
I uploaded a dashboard for grafana.
For reproduce issue, please add severity DEBUG for example in log file.
You will see it in the label_value but not in the level variable if Stream selector is not empty.
Anyway, here is what I’ve done to try and replicate this. Please let me know if there are parts where I am not doing what you are doing.
I generated the following test logs, essentially label tonytest has info, error, and warning logs, 2 count of each, while tonytest1 label only has info and warning, 2 count of each.
{"app": "tonytest1", "level": "info"} this is info log
{"app": "tonytest1", "level": "info"} this is info log
{"app": "tonytest1", "level": "warn"} this is warning log
{"app": "tonytest1", "level": "warn"} this is warning log
{"app": "tonytest", "level": "warn"} this is warning log
{"app": "tonytest", "level": "warn"} this is warning log
{"app": "tonytest", "level": "error"} this is error log
{"app": "tonytest", "level": "error"} this is error log
{"app": "tonytest", "level": "info"} this is info log
{"app": "tonytest", "level": "info"} this is info log
And as you can see from the dashboard, the dropdown menu does reflect on the change of what label_value is selected as, and i don’t see anything missing:
If API always returns correct information then it’s most likely not Loki.
Is your variable configured to refresh on dashboard load, or always refresh? I am wondering if it might have something to do with the time frame of your dashboard and the distribution of the logs with different labels.
Tried - no changes.
I found workarounds - after changing two times - Label name - problem is gone
or
from Dashboard settings → Variables run “Run query”