grafana
grafana copied to clipboard
Loki query dashboard supports adding same label which was already chosen
What happened: The label dropdown list shows the already chosen label in the query field. We can able to choose same label with same value multiple times which is not required.
What you expected to happen: We should remove the labels from the dropdown list which was already chosen.
How to reproduce it (as minimally and precisely as possible): Step 1: Go the the Loki dashboard. Step 2: Switch to the builder mode. Step 3: In the labels, click the + (PLUS) button to add a new label. Step 4: Choose a label. Step 5: Add another label by clicking the + (PLUS) button. Step 6: Choose the same label which is already chosen.
Anything else we need to know?:
Environment:
- Grafana version: 9.0.5
- Data source type & version:
- OS Grafana is installed on:
- User OS & Browser: Windows 10 & Chrome Browser
- Grafana plugins:
- Others:
Hi @SanthoshS20,
Thanks for reporting this issue.
I understand your description but this sounds like an improvement or maybe a feature request as labels are user-defined (custom) and making them unique will probably need a use case.
I will suggest that you open a feature request for this case as here this is not a bug.
You can use this link to open your request and then one of the team member will get back to you with more information.
I will now close this case.
Sure @usmangt. Thank you