Hey guys,
I'm in the middle of something here, I'm trying to replace the "/" from the
metric below but this isn't working at all.
I'm using a beanstalkd exporter, and the tubes are being listed with a "/"
and it's messing up with some automations that we're using because of that
forward slash, example below:
Query:
tubes_ready_total
Results:
{tube="some/simple/tube/one"}
{tube="some/simple/tube/two"}
I want to replace the "/" with a "_" if possible.
Would it be something like:
metric_relabel_configs:
- source_labels: [tube]
action: replace
target_label: tube
regex: (.+)(\/);(_)
replacement: $1:$2
Thank you.
--
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/537daff0-e0d3-4ed3-af00-0a6ef4810530%40googlegroups.com.