Within Grafana, I have several sensors collecting data, but I am unsure of how to give a ‘friendly’ name to the sensors below the graph.
Here’s a screenshot of what I am referring to:
Imgur: The magic of the Internet
Thank you very much for the help!
Welcome to the
community forum !!
For naming labels you need to assign them an alias (where you name for e.g. a-complex-device-id = easy-alias)
Please check this post as it is also on the same topic.
I have a Time series graph, and in the legend, all of its lines are labelled as ‘Count’.
I’d like to use the query name which I specified in the input that says ‘Edit query name’ (‘foo’ in this screenshot’) as the labels in the legend.
I see that there’s a field called ‘Display name’ under ‘Standard options’. How can I use the query name?
Hope this helps.
you can add “label to field” transformation to be able to display correctly your legend value
or you can add |>group() function i believe to gather all your data in the same table.
should have the same result.
Even easier (in my opinion) is to use a transformation (Standard options > Display name):
I need exactly what the override above does but I’d need it on more panels. Is there a way to centralise this kind of override?