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
79251692
Commit
79251692
authored
Nov 25, 2016
by
Fabian Reinartz
Committed by
GitHub
Nov 25, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #628 from prometheus/alertingsd
config: document Alertmanager discovery
parents
83c9c699
6b05d88e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
100 additions
and
27 deletions
+100
-27
configuration.md
content/docs/operating/configuration.md
+100
-27
No files found.
content/docs/operating/configuration.md
View file @
79251692
...
@@ -75,6 +75,8 @@ scrape_configs:
...
@@ -75,6 +75,8 @@ scrape_configs:
alerting:
alerting:
alert_relabel_configs:
alert_relabel_configs:
[ - <relabel_config> ... ]
[ - <relabel_config> ... ]
alertmanagers:
[- <alertmanager_config> ... ]
# Settings related to the experimental remote write feature.
# Settings related to the experimental remote write feature.
remote_write:
remote_write:
...
@@ -90,7 +92,6 @@ remote_write:
...
@@ -90,7 +92,6 @@ remote_write:
[ - <relabel_config> ... ]
[ - <relabel_config> ... ]
```
```
### `<scrape_config>`
### `<scrape_config>`
A
`scrape_config`
section specifies a set of targets and parameters describing how
A
`scrape_config`
section specifies a set of targets and parameters describing how
...
@@ -100,25 +101,9 @@ job. In advanced configurations, this may change.
...
@@ -100,25 +101,9 @@ job. In advanced configurations, this may change.
Targets may be statically configured via the
`static_configs`
parameter or
Targets may be statically configured via the
`static_configs`
parameter or
dynamically discovered using one of the supported service-discovery mechanisms.
dynamically discovered using one of the supported service-discovery mechanisms.
NOTE: Prior to v0.20,
`target_groups`
was used instead of
`static_configs`
.
`target_groups`
can still be used alternatively in v0.20 itself, but not in
later versions.
Additionally,
`relabel_configs`
allow advanced modifications to any
Additionally,
`relabel_configs`
allow advanced modifications to any
target and its labels before scraping.
target and its labels before scraping.
If the targets require authentication, the following options are available:
*
`basic_auth`
- sets the
`Authorization`
header on every scrape request with the
configured username and password.
*
`bearer_token`
- sets the
`Authorization`
header on every scrape request with
the configured bearer token.
*
`bearer_token_file`
- sets the
`Authorization`
header on every scrape request
with the bearer token read from the configured file.
*
`tls_config`
- configures the scrape request's TLS settings.
See below for the configuration of these authentication options.
```
```
# The job name assigned to scraped metrics by default.
# The job name assigned to scraped metrics by default.
job_name: <name>
job_name: <name>
...
@@ -151,28 +136,28 @@ job_name: <name>
...
@@ -151,28 +136,28 @@ job_name: <name>
# when a time series does not have a given label yet and are ignored otherwise.
# when a time series does not have a given label yet and are ignored otherwise.
[ honor_labels: <boolean> | default = false ]
[ honor_labels: <boolean> | default = false ]
#
The URL scheme with which to fetch metrics from targe
ts.
#
Configures the protocol scheme used for reques
ts.
[ scheme: <scheme> | default = http ]
[ scheme: <scheme> | default = http ]
# Optional HTTP URL parameters.
# Optional HTTP URL parameters.
params:
params:
[ <string>: [<string>, ...] ]
[ <string>: [<string>, ...] ]
# Optional authentication information. Note that `basic_auth`, `bearer_token`
# Sets the `Authorization` header on every scrape request with the
# `bearer_token_file` options are mutually exclusive.
# configured username and password.
# Optional HTTP basic authentication information.
basic_auth:
basic_auth:
[ username: <string> ]
[ username: <string> ]
[ password: <string> ]
[ password: <string> ]
# Optional bearer token authentication information.
# Sets the `Authorization` header on every scrape request with
# the configured bearer token. It is mutually exclusive with `bearer_token_file`.
[ bearer_token: <string> ]
[ bearer_token: <string> ]
# Optional bearer token file authentication information.
# Sets the `Authorization` header on every scrape request with the bearer token
# read from the configured file. It is mutually exclusive with `bearer_token`.
[ bearer_token_file: /path/to/bearer/token/file ]
[ bearer_token_file: /path/to/bearer/token/file ]
#
Optional TLS configuration
.
#
Configures the scrape request's TLS settings
.
tls_config:
tls_config:
[ <tls_config> ]
[ <tls_config> ]
...
@@ -216,7 +201,6 @@ serverset_sd_configs:
...
@@ -216,7 +201,6 @@ serverset_sd_configs:
[ - <serverset_sd_config> ... ]
[ - <serverset_sd_config> ... ]
# List of labeled statically configured targets for this job.
# List of labeled statically configured targets for this job.
# Known as target_groups prior to v0.20.
static_configs:
static_configs:
[ - <static_config> ... ]
[ - <static_config> ... ]
...
@@ -233,7 +217,6 @@ Where `<scheme>` may be `http` or `https` and `<path>` is a valid URL path.
...
@@ -233,7 +217,6 @@ Where `<scheme>` may be `http` or `https` and `<path>` is a valid URL path.
`<job_name>`
must be unique across all scrape configurations and adhere to the
`<job_name>`
must be unique across all scrape configurations and adhere to the
regex
`[a-zA-Z_][a-zA-Z0-9_-]`
.
regex
`[a-zA-Z_][a-zA-Z0-9_-]`
.
### `<tls_config>`
### `<tls_config>`
A
`tls_config`
allows configuring TLS connections.
A
`tls_config`
allows configuring TLS connections.
...
@@ -821,6 +804,96 @@ relabeling is applied after external labels.
...
@@ -821,6 +804,96 @@ relabeling is applied after external labels.
One use for this is ensuring a HA pair of Prometheus servers with different
One use for this is ensuring a HA pair of Prometheus servers with different
external labels send identical alerts.
external labels send identical alerts.
### `<alertmanager_config>`
An
`alertmanager_config`
section specifies Alertmanager instances the Prometheus server sends
alerts to. It also provides parameters to configure how to communicate with these Alertmanagers.
Alertmanagers may be statically configured via the
`static_configs`
parameter or
dynamically discovered using one of the supported service-discovery mechanisms.
Additionally,
`relabel_configs`
allow selecting Alertmanagers from discovered
entities and provide advanced modifications to the used API path, which is exposed
through the
`__alerts_path__`
label.
```
# Per-target Alertmanager timeout when pushing alerts.
[ timeout: <duration> | default = 10s ]
# Prefix for the HTTP path alerts are pushed to.
[ path_prefix: <path> | default = / ]
# Configures the protocol scheme used for requests.
[ scheme: <scheme> | default = http ]
# Sets the `Authorization` header on every request with the
# configured username and password.
basic_auth:
[ username: <string> ]
[ password: <string> ]
# Sets the `Authorization` header on every request with
# the configured bearer token. It is mutually exclusive with `bearer_token_file`.
[ bearer_token: <string> ]
# Sets the `Authorization` header on every request with the bearer token
# read from the configured file. It is mutually exclusive with `bearer_token`.
[ bearer_token_file: /path/to/bearer/token/file ]
# Configures the scrape request's TLS settings.
tls_config:
[ <tls_config> ]
# Optional proxy URL.
[ proxy_url: <string> ]
# List of Azure service discovery configurations.
azure_sd_configs:
[ - <azure_sd_config> ... ]
# List of Consul service discovery configurations.
consul_sd_configs:
[ - <consul_sd_config> ... ]
# List of DNS service discovery configurations.
dns_sd_configs:
[ - <dns_sd_config> ... ]
# List of EC2 service discovery configurations.
ec2_sd_configs:
[ - <ec2_sd_config> ... ]
# List of file service discovery configurations.
file_sd_configs:
[ - <file_sd_config> ... ]
# List of GCE service discovery configurations.
gce_sd_configs:
[ - <gce_sd_config> ... ]
# List of Kubernetes service discovery configurations.
kubernetes_sd_configs:
[ - <kubernetes_sd_config> ... ]
# List of AirBnB's Nerve service discovery configurations.
nerve_sd_configs:
[ - <nerve_sd_config> ... ]
# List of Zookeeper Serverset service discovery configurations.
serverset_sd_configs:
[ - <serverset_sd_config> ... ]
# List of labeled statically configured Alertmanagers.
static_configs:
[ - <static_config> ... ]
# List of Alertmanager relabel configurations.
relabel_configs:
[ - <relabel_config> ... ]
```
Where
`<scheme>`
may be
`http`
or
`https`
and
`<path>`
is a valid URL path.
### `<remote_write>`
### `<remote_write>`
CAUTION: Remote write is experimental: breaking changes to configuration are
CAUTION: Remote write is experimental: breaking changes to configuration are
likely in future releases.
likely in future releases.
...
...
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