Hi thanks for the respond so nothing happened the label stayed the same I have it in a relabel_configs block Prometheus version is: 2.32.1 and ill add a labeldrop once i get both labels thanks
On Tuesday, June 7, 2022 at 10:37:49 AM UTC+3 Brian Candler wrote: > Define "didn't work" - what actually happened? Can you show some examples? > > Where are you doing this: inside a relabel_configs block, or a > metric_relabel_configs block, or somewhere else? What version of > Prometheus? Did you reload/HUP prometheus after changing the config? > > I believe you'll get both old and new labels, unless you also have a > labeldrop rule for the old ones. > > On Tuesday, 7 June 2022 at 08:05:11 UTC+1 David Friedman wrote: > >> Hi all >> I'm trying to relabel a label from tag_name to just name >> I tried to do something like this >> - action: labelmap >> regex: "[^_]+_(.+)" >> replacement: "$1" >> but it didn't work >> any help would be appreciated >> thanks >> > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/fc360603-643d-48a5-b176-1d8cddb18ea1n%40googlegroups.com.

