Regex Value Mappings Not Working - Status History Panel

  • What Grafana version and what operating system are you using? *
    v8.2.6 (c3cc4da7a5)
    I believe we are running in Docker using the Grafana docker image.

  • What are you trying to achieve?
    Regex value mapping on different status values ie. Initializing, Fault, Compromised

  • How are you trying to achieve it?
    Using Regular Expressions. I can always get the first expression to work, but any following expressions fail.

  • What happened?
    Only the first regex value map works. In this case I have matched “^Init.*” and replaced it with “MY” but when I also try to match “^.Fault.” and replace it with “BILLY” it fails. If I swap the order “BILLY” would work but “MY” would fail.

  • What did you expect to happen?
    I should be able to match multiple different values and map each one to a new value and color.

welcome to the :grafana: forum, @davidd9f8

I think you might need to share your raw, unformatted data for us to help troubleshoot this. I was able to use multiple regex-value mappings with the status history panel on 8.5.0-beta. Here is a dashboard:

https://play.grafana.org/d/3sevWaU7z/multiple-regex-value-mappings?orgId=1

1 Like

What is the source data? Mysql?

Maybe provide sample as

Create table regex(ces varchar(150), cen varchar(150))

Insert into regex
Values('ces-73747','cen-7474u')

the source is an Influxdb

Updated to version 8.5.0-beta1 and it looks like that resolved the issue. Thank you @mattabrams !

1 Like