- What Grafana version and what operating system are you using?
Grafana Cloud
- What are you trying to achieve?
I’m trying to override display names with a matching regex. This is what I’m trying to achieve:
${host} Temp[0] → Sensor 1
${host} Temp[1] → Sensor 2
- How are you trying to achieve it?
I tried a name override, which works fine. However, the variable ${host} changes, e.g. “host1”, “host2”, so a name override is not possible. I think I need to use a regex override, but what I did does not have any effect.
- What happened?
Nothing, the override doesn’t work.
- What did you expect to happen?
Change of name from “${host} Temp[0]” to “Sensor 1”.
- Can you copy/paste the configuration(s) that you are having problems with?
See image above.
- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
No.
- Did you follow any online instructions? If so, what is the URL?