Hi.
Is it possible to replace certain char in label?

I have a metric like this:
my_metric{label1=“foo-foo-foo”, label2=“foo”}

label1 may have values:
foo
foo-foo
foo-foo-foo
and so on

It isn’t known how many ‘-’ it has.

I want to replace all dashes with underscore in label1 value:
my_metric{label1=“foo_foo_foo”, label2=“foo”}

Again, i don’t know how many dashes it may has.

I tried using “metric_relabel_configs” with replace mechanism, but it seems 
not possible to do with that.

-- 
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/69ce9c21-0b03-40a2-850a-1716dd801119n%40googlegroups.com.

Reply via email to