Capture Groups in Panel Overrides?

I’m running Grafana OSS 8.5.5. I’m using a standard graph panel to plot four sensors from InfluxDB. Simple stuff. Those sensors are named sensor1, sensor2, etc. If I want to give those sensors (and any future ones that follow the same naming convention) a nicer human-friendly name (“Sensor #1”), is there any way to do an override by matching a regex while using a capture group to set the display name? I could fairly easily match on /sensor(\d+)/ and then use something like Sensor #$1 for my display name, but it doesn’t seem to work. I’m guessing capture groups just aren’t supported, which is okay, but I thought I’d check with the experts before giving up.

Did you try the rename by regex transform?
https://grafana.com/docs/grafana/next/panels/transform-data/transformation-functions/#rename-by-regex

1 Like

@boazreicher: I just did, and it does everything I need. Thank you so much – I feel like I should have seen that out there before posting here.