Filtering words of a string to convert it to numbers so as to set tresholds

  • What Grafana version and what operating system are you using?

Grafana v11.0.0 (277ef258d4) / OS : Windows 10 Pro

  • What are you trying to achieve?

Filtering words of a string to convert it to numbers so as to set tresholds and have an icon change its color when im getting an error in that string

  • How are you trying to achieve it?

  • Im trying to use the “Value mapping” tab in order to exchange that string that im reciving to a number

  • What happened?

  • I found that the string im using comes with date and time information that changes every second so I need a way to filter key words that if are not found in my string I can change it to a certain number and then make that number give an exact color on the icon im using to show if its working

  • What did you expect to happen?

  • Find a way to filter

  • 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.
    No

  • Did you follow any online instructions? If so, what is the URL?

  • No

welcome @diegoeloso

what is your data source? Also please provide some sample data of before and after