Trimming Prometheus label values with relabel rules
- action: "replace"
source_labels: [lname]
target_label: "lname"
replacement: "${1}"
regex = "(.*).{8}" // this removes 8 characters from the end
regex = "(.*{5})(.*)" // this only keeps the first 5 characters
@tpaschalis are these combing to the rules config file? Looking forward to using these for a project