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
bf54fd18
Commit
bf54fd18
authored
Aug 13, 2015
by
Fabian Reinartz
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #165 from brian-brazil/labelmap
Document labelmap.
parents
1d215101
73aa2f5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
configuration.md
content/docs/operating/configuration.md
+7
-3
No files found.
content/docs/operating/configuration.md
View file @
bf54fd18
...
...
@@ -331,8 +331,9 @@ Labels starting with `__` will be removed from the label set after relabeling is
```
# The source labels select values from existing labels. Their content is concatenated
# using the configured separator and matched against the configured regular expression.
source_labels: '[' <labelname> [, ...] ']'
# using the configured separator and matched against the configured regular expression
# for the replace, keep, and drop actions.
[ source_labels: '[' <labelname> [, ...] ']' ]
# Separator placed between concatenated source label values.
[ separator: <string> | default = ; ]
...
...
@@ -357,7 +358,7 @@ source_labels: '[' <labelname> [, ...] ']'
`<regex>`
is any valid
[
RE2 regular
expression](https://github.com/google/re2/wiki/Syntax). It is required for
the
`replace`
,
`keep`
,
and
`dro
p`
actions.
the
`replace`
,
`keep`
,
`drop`
and
`labelma
p`
actions.
`<relabel_action>`
determines the relabeling action to take:
...
...
@@ -367,6 +368,9 @@ the `replace`, `keep`, and `drop` actions.
*
`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`
.
*
`labelmap`
: Match
`regex`
against all label names. Then copy the values of the matching labels
to label names given by
`replacement`
with match group references
(
`${1}`
,
`${2}`
, ...) in
`replacement`
substituted by their value.
### Metric relabeling `<metric_relabel_configs>`
...
...
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