Key Value -> prometheus value

Hi All,

I’ve been searching around on the web, but have been unsuccessful in getting what I want to work. I have a metric that is appearing like this - its got lots of labels with useful information, but they all have a value of “1”

custom_app {some_value=xyz, other_label=aaa, license_expiry=12345}          1

I want to extract out the license_expiry = 12345, so I can create a query on it in alert manager - and also see it as a graph in Prometheus

I’ve looked at label_replace - but I couldn’t get it to work, and I don’t think its the right thing.

Appreciate any guidance