2020-03-28 23:48:30 +00:00
|
|
|
groups:
|
|
|
|
- name: groupGorSingleAlert
|
|
|
|
rules:
|
|
|
|
- alert: VMRows
|
2020-04-11 09:40:24 +00:00
|
|
|
for: 10s
|
2020-03-28 23:48:30 +00:00
|
|
|
expr: vm_rows > 0
|
|
|
|
labels:
|
|
|
|
label: bar
|
2020-05-04 21:51:22 +00:00
|
|
|
host: "{{ $labels.instance }}"
|
2020-03-28 23:48:30 +00:00
|
|
|
annotations:
|
2020-04-01 15:17:53 +00:00
|
|
|
summary: "{{ $value|humanize }}"
|
2020-03-28 23:48:30 +00:00
|
|
|
description: "{{$labels}}"
|
|
|
|
|
2020-04-12 11:47:26 +00:00
|
|
|
- name: TestGroup
|
|
|
|
rules:
|
|
|
|
- alert: Conns
|
|
|
|
expr: sum(vm_tcplistener_conns) by(instance) > 1
|
|
|
|
annotations:
|
|
|
|
summary: "Too high connection number for {{$labels.instance}}"
|
|
|
|
description: "It is {{ $value }} connections for {{$labels.instance}}"
|
|
|
|
- alert: ExampleAlertAlwaysFiring
|
|
|
|
expr: sum by(job)
|
|
|
|
(up == 1)
|