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
26665917
Commit
26665917
authored
Jan 26, 2016
by
Fabian Reinartz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cross-links
parent
de1643d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
16 deletions
+24
-16
alertmanager.md
content/docs/alerting/alertmanager.md
+10
-2
overview.md
content/docs/alerting/overview.md
+5
-7
rules.md
content/docs/alerting/rules.md
+9
-7
No files found.
content/docs/alerting/alertmanager.md
View file @
26665917
...
...
@@ -6,8 +6,9 @@ nav_icon: sliders
# Alertmanager
The Alertmanager handles alerts sent by client applications such as the
Prometheus server. It takes care of deduplicating, grouping, and routing
The
[
Alertmanager
](
https://github.com/prometheus/alertmanager
)
handles alerts
sent by client applications such as the Prometheus server.
It takes care of deduplicating, grouping, and routing
them to the correct receiver integration such as email, PagerDuty, or OpsGenie.
It also takes care of silencing and inhibition of alerts.
...
...
@@ -59,3 +60,10 @@ matchers of an active silence.
If they do, no notifications will be send out for that alert.
Silences are configured in the web interface of the Alertmanager.
## Client behavior
The Alertmanager has
[
special requirements
](
../clients
)
for behavior of its
client. Those are only relevant for advanced use cases where Prometheus
is not used to send alerts.
\ No newline at end of file
content/docs/alerting/overview.md
View file @
26665917
...
...
@@ -7,14 +7,12 @@ nav_icon: sliders
# Alerting Overview
Alerting with Prometheus is separated into two parts. Alerting rules in
Prometheus servers send alerts to an Alertmanager. The Alertmanager then
manages those alerts, including silencing, inhibition, aggregation and sending
out notifications via methods such as email, PagerDuty and HipChat.
**WARNING: The Alertmanager is still considered to be very experimental.**
Prometheus servers send alerts to an Alertmanager. The
[
Alertmanager
](
../alertmanager
)
then manages those alerts, including silencing, inhibition, aggregation and
sending out notifications via methods such as email, PagerDuty and HipChat.
The main steps to setting up alerting and notifications are:
*
Setup and
configure
the Alertmanager
*
Setup and
[
configure
](
../configuration
)
the Alertmanager
*
Configure Prometheus to talk to the Alertmanager with the
`-alertmanager.url`
flag
*
Create
alerting rules
in Prometheus
*
Create
[
alerting rules
](
../rules
)
in Prometheus
content/docs/alerting/rules.md
View file @
26665917
...
...
@@ -20,9 +20,9 @@ Alerting rules are defined in the following syntax:
ALERT <alert name>
IF <expression>
[
FOR <duration>
]
[
LABELS <label set>
]
[
ANNOTATIONS <label set>
]
[
FOR <duration>
]
[
LABELS <label set>
]
[
ANNOTATIONS <label set>
]
The optional
`FOR`
clause causes Prometheus to wait for a certain duration
between first encountering a new expression output vector element (like an
...
...
@@ -38,15 +38,17 @@ identifying for an alert instance. They are used to store longer additional
information such as alert descriptions or runbook links. The annotation values
can be templated.
#### v0.16.2 and earlier
####
Prometheus
v0.16.2 and earlier
In previous Prometheus versions the rule syntax is as follows:
ALERT <alert name>
IF <expression>
[FOR <duration>]
[WITH <label set>]
[ANNOTATIONS <label set>]
[ FOR <duration> ]
[ WITH <label set> ]
SUMMARY <string>
DESCRIPTION <string>
[ RUNBOOK <string> ]
Annotations are not free form but fixed to a summary, a description, and a
runbook field. Labels are attached using the
`WITH`
rather than the
`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