Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docs
Commits
4caa25de
Commit
4caa25de
authored
Apr 05, 2016
by
Julius Volz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify replace relabel behavior with non-matching regex
parent
0a8bb46d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
configuration.md
content/docs/operating/configuration.md
+2
-1
No files found.
content/docs/operating/configuration.md
View file @
4caa25de
...
...
@@ -606,7 +606,8 @@ the `replace`, `keep`, `drop` and `labelmap` actions. The regex is fully anchore
*
`replace`
: Match
`regex`
against the concatenated
`source_labels`
. Then, set
`target_label`
to
`replacement`
, with match group references
(
`${1}`
,
`${2}`
, ...) in
`replacement`
substituted by their value.
(
`${1}`
,
`${2}`
, ...) in
`replacement`
substituted by their value. If
`regex`
does not match, no replacement takes place.
*
`keep`
: Drop targets for which
`regex`
does not match the concatenated
`source_labels`
.
*
`drop`
: Drop targets for which
`regex`
matches the concatenated
`source_labels`
.
*
`hashmod`
: Set
`target_label`
to the
`modulus`
of a hash of the concatenated
`source_labels`
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment