Regex Not Regexing (Tried other community posts)

  • What Grafana version and what operating system are you using?
    According to grafana-url/api/health :
    {
    “commit”: “a676a96d91”,
    “database”: “ok”,
    “version”: “10.1.4”
    }

Device info (in case it matters)
|Description:|Ubuntu 22.04.3 LTS|
|Release:|22.04|

(I’m very new to grafana, trying it out for a college project, any help is appreciated)

  • What are you trying to achieve? :
    I want to extract the packet loss percentage from the ‘message’

  • How are you trying to achieve it?
    I tried using the value mapping, I even tried the same with “rename by regex” transform tool, and cheked out other community posts.

my regex code works properley here :

  • What happened? Nothing (It still shows message as a string, with no modifications)

  • What did you expect to happen? Well, The packet loss to be shown as a number (I want to plug the value into a gauge)

  • 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?

and also ( rename-by-regex-doesnt-process-validated-syntax/82305 )

Please let me know If I’m missing something small, I’ve been trying to figure this out for days now.

Thank you!