Commit aa50820d authored by beorn7's avatar beorn7

Clarifying regex anchoring

parent 86887067
...@@ -742,9 +742,10 @@ prefix is guaranteed to never be used by Prometheus itself. ...@@ -742,9 +742,10 @@ prefix is guaranteed to never be used by Prometheus itself.
[ action: <relabel_action> | default = replace ] [ action: <relabel_action> | default = replace ]
``` ```
`<regex>` is any valid [RE2 regular `<regex>` is any valid
expression](https://github.com/google/re2/wiki/Syntax). It is required for [RE2 regular expression](https://github.com/google/re2/wiki/Syntax). It is
the `replace`, `keep`, `drop` and `labelmap` actions. The regex is fully anchored. required for the `replace`, `keep`, `drop` and `labelmap` actions. The regex is
anchored on both ends. To un-anchor the regex, use `.*<regex>.*`.
`<relabel_action>` determines the relabeling action to take: `<relabel_action>` determines the relabeling action to take:
......
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