-
What Grafana version and what operating system are you using?
Grafana Cloud -
What are you trying to achieve?
I have a state timeline like this, which shows each value as a number. I want to value map those numbers to textual labels. I have this text available in a separate query, but in a slightly different format.
-
How are you trying to achieve it?
I added another query (called config) with “organize fields by name” which produces a table like this, with 2 columns for port number and port_name. Then I add a “config from query results” with “value mapping / value” and “value mapping / display text”.
-
What happened?
It doesn’t work because the port number column in my config query is prefixed with the letterI
. So I tried adding a “rename fields by regex” to remove thatI
, but this doesn’t work, it just renames the column name. -
What did you expect to happen?
I thought “rename by regex” would strip theI
from the beginning of each port value.