Grafana: overriding legend display name

Granafa is a very powerful tool, but it can be a little tricky figuring out how to make it do what you want sometimes. Customizing the graph legend is one. There are several ways to do this:

Overrides

This is perhaps the easiest and does not require any query modifications if you want to do something manual:

Displaying an Influx2 tag in the legend

Often only one parameter will vary in a graph, so you want to display that. You can do that in an influx2 map function where you change the _field name:

It would be nice to extract labels directly from a database – stay tuned …