[prometheus-users] Re: label_replace - extract string from label_value

2021-02-04 Thread Nabil L.
Hi Matthias, This is exactly what I am looking for! Thanks a lot for your help! Regards, Neb Le mardi 2 février 2021 à 08:52:07 UTC+1, Matthias Rieber a écrit : > Hello, > > On Mon, 1 Feb 2021, Nabil L. wrote: > > > Any help ? :) > > maybe: > > sum without (image)

[prometheus-users] Re: label_replace - extract string from label_value

2021-02-01 Thread Matthias Rieber
Hello, On Mon, 1 Feb 2021, Nabil L. wrote: Any help ? :) maybe: sum without (image) (label_replace(kube_pod_container_info, "release", "$1", "image", ".*:([^:]*)")) Regards, Matthias Le lundi 1 février 2021 à 21:10:14 UTC+1, Nabil L. a écrit : Hi Folks, I wonder if someone know how

[prometheus-users] Re: label_replace - extract string from label_value

2021-02-01 Thread Nabil L.
Any help ? :) Le lundi 1 février 2021 à 21:10:14 UTC+1, Nabil L. a écrit : > Hi Folks, > > I wonder if someone know how to extract a string from a label_value and > using the the label_replace . > > For example I have the following metric, which return > > *kube_pod_container_info* which