On Monday, 4 July 2022 at 14:57:58 UTC+1 [email protected] wrote: > Thank you, it works, but with minor fix with your code > > - source_labels: [ label1 ] > target_label: label1 > regex: '([[:alnum:]]+)[-_]+([[:alnum:]]+)' > replacement: "${1}_${2}" >
Hmm, I can't see what the problem with the original version was. If there was already an underscore, it would have left it alone. -- 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/b14e37bf-4812-41a5-8c67-0c562007bd75n%40googlegroups.com.

