Unverified Commit 8c8badfd authored by 田浩's avatar 田浩 Committed by GitHub
Browse files

Merge pull request #70 from eduponte/version-2

Update configs to Prometheus v2
parents d7b33582 79321b1d
groups:
- name: example
rules:
- alert: InstanceDown
# Alert for any instance that is unreachable for >5 minutes.
- alert: service_down
expr: up == 0
for: 5m
for: 2m
labels:
severity: page
annotations:
summary: "Instance {{ $labels.instance }} down"
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes."
\ No newline at end of file
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 2 minutes."
- alert: high_load
expr: node_load1 > 0.5
for: 2m
labels:
severity: page
annotations:
summary: "Instance {{ $labels.instance }} under high load"
description: "{{ $labels.instance }} of job {{ $labels.job }} is under high load."
\ No newline at end of file
......@@ -11,7 +11,7 @@ global:
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
rule_files:
- "alert.rules"
- 'alert.rules'
# - "first.rules"
# - "second.rules"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment