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
244ff4f4
Commit
244ff4f4
authored
Jun 16, 2015
by
Julius Volz
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #116 from brian-brazil/metric-relabel
Document metric relabeling.
parents
52bab492
65ff2304
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
configuration.md
content/docs/operating/configuration.md
+14
-2
No files found.
content/docs/operating/configuration.md
View file @
244ff4f4
...
@@ -118,9 +118,13 @@ file_sd_configs:
...
@@ -118,9 +118,13 @@ file_sd_configs:
target_groups:
target_groups:
[ - <target_group> ... ]
[ - <target_group> ... ]
# List of relabel configurations.
# List of
target
relabel configurations.
relabel_configs:
relabel_configs:
[ - <relabel_config> ... ]
[ - <relabel_config> ... ]
# List of metric relabel configurations.
metric_relabel_configs:
[ - <relabel_config> ... ]
```
```
Where
`<scheme>`
may be
`http`
or
`https`
and
`<path>`
is a valid URL path.
Where
`<scheme>`
may be
`http`
or
`https`
and
`<path>`
is a valid URL path.
...
@@ -239,7 +243,7 @@ Where `<filename_pattern>` may be a path ending in `.json`, `.yml` or `.yaml`. T
...
@@ -239,7 +243,7 @@ Where `<filename_pattern>` may be a path ending in `.json`, `.yml` or `.yaml`. T
may contain a single
`*`
that matches any character sequence, e.g.
`my/path/tg_*.json`
.
may contain a single
`*`
that matches any character sequence, e.g.
`my/path/tg_*.json`
.
###
R
elabeling `<relabel_config>`
###
Target r
elabeling `<relabel_config>`
Relabeling is a powerful tool to dynamically rewrite the label set of a target before
Relabeling is a powerful tool to dynamically rewrite the label set of a target before
it gets scraped. Multiple relabeling steps can be configured per scrape configuration.
it gets scraped. Multiple relabeling steps can be configured per scrape configuration.
...
@@ -290,3 +294,11 @@ regex: <regex>
...
@@ -290,3 +294,11 @@ regex: <regex>
(
`${1}`
,
`${2}`
, ...) in
`replacement`
substituted by their value.
(
`${1}`
,
`${2}`
, ...) in
`replacement`
substituted by their value.
*
`keep`
: Drop targets for which
`regex`
does not match the concatenated
`source_labels`
.
*
`keep`
: Drop targets for which
`regex`
does not match the concatenated
`source_labels`
.
*
`drop`
: Drop targets for which
`regex`
matches the concatenated
`source_labels`
.
*
`drop`
: Drop targets for which
`regex`
matches the concatenated
`source_labels`
.
### Metric relabeling `<metric_relabel_configs>`
Metric relabeling is applied to samples as the last step before ingestion. It
has the same configuration format and actions as target relabeling. Metric
relabeling does not apply to automatically generated timeseries such as
`up`
.
One use for this is to blacklist time series that are too expensive to ingest.
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