That won't work because labelmap needs a `source_labels` to act on.

On Tue, Jun 7, 2022 at 9:05 AM David Friedman <
[email protected]> 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/130e874a-4961-412b-9619-99817ceb527dn%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/130e874a-4961-412b-9619-99817ceb527dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CABbyFmo5qPGY45zEgW-MG-LChyLEbx3eDi-KewtdoKpPbRORBQ%40mail.gmail.com.

Reply via email to