|
|
|
@ -1,5 +1,5 @@ |
|
|
|
groups: |
|
|
|
groups: |
|
|
|
- name: alert.rules |
|
|
|
- name: alert.rules |
|
|
|
rules: |
|
|
|
rules: |
|
|
|
- alert: InstanceDown |
|
|
|
- alert: InstanceDown |
|
|
|
expr: up == 0 |
|
|
|
expr: up == 0 |
|
|
|
@ -9,11 +9,3 @@ groups: |
|
|
|
annotations: |
|
|
|
annotations: |
|
|
|
summary: "Endpoint {{ $labels.instance }} down" |
|
|
|
summary: "Endpoint {{ $labels.instance }} down" |
|
|
|
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 1 minutes." |
|
|
|
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 |
|
|
|
|