1 changed files with 10 additions and 18 deletions
@ -1,19 +1,11 @@
|
||||
groups: |
||||
- name: alert.rules |
||||
rules: |
||||
- alert: InstanceDown |
||||
expr: up == 0 |
||||
for: 1m |
||||
labels: |
||||
severity: "critical" |
||||
annotations: |
||||
summary: "Endpoint {{ $labels.instance }} down" |
||||
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 1 minutes." |
||||
|
||||
- name: test.rules |
||||
webhook_configs: |
||||
|
||||
# - name: 'admins' |
||||
# webhook_configs: |
||||
# - send_resolved: True |
||||
# url: http://localhost:9087/alert/65498889 |
||||
- name: alert.rules |
||||
rules: |
||||
- alert: InstanceDown |
||||
expr: up == 0 |
||||
for: 1m |
||||
labels: |
||||
severity: "critical" |
||||
annotations: |
||||
summary: "Endpoint {{ $labels.instance }} down" |
||||
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 1 minutes." |
||||
|
||||
Loading…
Reference in new issue