I need to create a selection window in a Grafana dashboard that only shows 3 characters that’s been parsed from a hostname queried from InfluxDB. I’m able to query the hostname as a variable; can REGEX be used to parse out the 3 unknown characters starting at a fix position? The hostname length will always be 8 characters and I need to parse out characters 4,5 and 6 from the string. The 3 characters represents airport codes. If possible, please provide a REGEX example.
Desired REGEX output to be used as variables in dashboard selection window.
What Grafana version and what operating system are you using?
What are you trying to achieve?
Uses REGEX as a Query Options under Settings->Variable.
How are you trying to achieve it?
What did you expect to happen?
Can you copy/paste the configuration(s) that you are having problems with?
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
Did you follow any online instructions? If so, what is the URL?