Modify the time series name showed in the legend

  • What Grafana version and what operating system are you using? 12.3.1

  • What are you trying to achieve? Compare the values of a metric in a timeseries view with the same metric values of 1 day before.

  • How are you trying to achieve it? I created a Time Series visualization with two queries for the same metric. For the second query, I added the function timeShift to show the values of the -24h.

  • What happened? It works, but the Legend reports the same name, the name of the Zabbix metric, and it’s impossible to distinguish between the current graph and the past graph.

  • What did you expect to happen? A way to modify the name of the series.

in your query can you modify the metric to show current and past? In the Item field

Hi @albertocoopkg
You can use Alias, maybe Set Alias or ReplaceAlias with regex.