Commit d377ab91 authored by Yecheng Fu's avatar Yecheng Fu

fix relabel defaults

parent fac1e7dd
...@@ -639,14 +639,14 @@ prefix is guaranteed to never be used by Prometheus itself. ...@@ -639,14 +639,14 @@ prefix is guaranteed to never be used by Prometheus itself.
[ target_label: <labelname> ] [ target_label: <labelname> ]
# Regular expression against which the extracted value is matched. # Regular expression against which the extracted value is matched.
[ regex: <regex> ] [ regex: <regex> | default = (.*) ]
# Modulus to take of the hash of the source label values. # Modulus to take of the hash of the source label values.
[ modulus: <uint64> ] [ modulus: <uint64> ]
# Replacement value against which a regex replace is performed if the # Replacement value against which a regex replace is performed if the
# regular expression matches. # regular expression matches.
[ replacement: <string> | default = '' ] [ replacement: <string> | default = $1 ]
# Action to perform based on regex matching. # Action to perform based on regex matching.
[ action: <relabel_action> | default = replace ] [ action: <relabel_action> | default = replace ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment