Replies: 1 comment 1 reply
-
I had an idea to provide an equivalent to Something like this: metric_relabel_configs:
- source_labels:
- solarChargersCurrentDescription
regex: "(.+[a-z])\\s*"
target_label: solarChargersCurrentDescription |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a vendor that has a variable amount of whitespace at the end of all metrics that are of type DisplayString:
Is there a way for me to rewrite these to remove any trailing whitespace? I don't think the
regex_extracts
method works, as that converts the extracted group to a float64, which doesn't work for strings that are meant to stay as strings.Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions