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
f3a28b59
Commit
f3a28b59
authored
Sep 30, 2015
by
Brian Brazil
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #220 from prometheus/external-labels
Document new name and semantics of external labels.
parents
6fb1adb2
540c58b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
getting_started.md
content/docs/introduction/getting_started.md
+3
-2
configuration.md
content/docs/operating/configuration.md
+10
-5
No files found.
content/docs/introduction/getting_started.md
View file @
f3a28b59
...
...
@@ -39,8 +39,9 @@ global:
evaluation_interval: 15s # By default, scrape targets every 15 seconds.
# scrape_timeout is set to the global default (10s).
# Attach these extra labels to all timeseries collected by this Prometheus instance.
labels:
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
monitor: 'codelab-monitor'
# A scrape configuration containing exactly one endpoint to scrape:
...
...
content/docs/operating/configuration.md
View file @
f3a28b59
...
...
@@ -57,8 +57,9 @@ global:
# How frequently to evaluate rules by default.
[ evaluation_interval: <duration> | default = 1m ]
# The labels to add to any timeseries that this Prometheus instance scrapes.
labels:
# The labels to add to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
[ <labelname>: <labelvalue> ... ]
# Rule files specifies a list of files from which rules are read.
...
...
@@ -112,8 +113,8 @@ job_name: <name>
# honor_labels controls how Prometheus handles conflicts between labels that are
# already present in scraped data and labels that Prometheus would attach
# server-side ("job" and "instance" labels,
global labels, manually configured
#
target
labels, and labels generated by service discovery implementations).
# server-side ("job" and "instance" labels,
manually configured target
# labels, and labels generated by service discovery implementations).
#
# If honor_labels is set to "true", label conflicts are resolved by keeping label
# values from the scraped data and ignoring the conflicting server-side labels.
...
...
@@ -123,6 +124,10 @@ job_name: <name>
# example "exported_instance", "exported_job") and then attaching server-side
# labels. This is useful for use cases such as federation, where all labels
# specified in the target should be preserved.
#
# Note that any globally configured "external_labels" are unaffected by this
# setting. In communication with external systems, they are always applied only
# when a time series does not have a given label yet and are ignored otherwise.
[ honor_labels: <boolean> | default = false ]
# The URL scheme with which to fetch metrics from targets.
...
...
@@ -455,7 +460,7 @@ it gets scraped. Multiple relabeling steps can be configured per scrape configur
They are applied to the label set of each target in order of their appearance
in the configuration file.
Initially, aside from the configured
global and
per-target labels, a target's
`job`
Initially, aside from the configured per-target labels, a target's
`job`
label is set to the
`job_name`
value of the respective scrape configuration.
The
`__address__`
label is set to the
`<host>:<port>`
address of the target.
After relabeling, the
`instance`
label is set to the value of
`__address__`
by default if
...
...
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