add alertmanager

This commit is contained in:
paul
2016-07-27 16:09:16 +08:00
parent 945fb739c9
commit 29dc390edf
4 changed files with 55 additions and 1 deletions

7
prometheus/alert.rules Normal file
View File

@ -0,0 +1,7 @@
ALERT instance_down
IF up == 0
FOR 5s
LABELS {severity="page"}
ANNOTATIONS {
DESCRIPTION="{{$labels.instance}} of job {{$labels.job}} has been down for more than 5 seconds.",
SUMMARY="Instance {{$labels.instance}} down"}

View File

@ -11,6 +11,7 @@ global:
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
rule_files:
- "alert.rules"
# - "first.rules"
# - "second.rules"