Display name override with Regex and capture group

  • Grafana 10.2.0
  • Data source - Zabbix 6

In a Stat panel, the series names are all Zabbix [host - item] names.

I wish to extract only part of the hostnames since they are similar.
To do this I thought of using an override in the display name option.
I could use a regular expression to select the hostname parts.

How can I display only the regex captured groups in the display name?

Helo @markfree
You can use the replaceAlias function, I believe it may work for you.
Functions - Grafana-Zabbix Documentation

1 Like

That did the trick. Thanks a lot @bernardolankheet