2020-04-27 21:19:27 +00:00
|
|
|
groups:
|
|
|
|
- name: groupGorSingleAlert
|
2021-12-02 12:45:08 +00:00
|
|
|
params:
|
|
|
|
nocache: ["1"]
|
|
|
|
denyPartialResponse: ["true"]
|
2020-04-27 21:19:27 +00:00
|
|
|
rules:
|
|
|
|
- alert: VMRows
|
|
|
|
for: 10s
|
|
|
|
expr: vm_rows > 0
|
|
|
|
labels:
|
|
|
|
label: bar
|
2020-05-04 21:51:22 +00:00
|
|
|
host: "{{ $labels.instance }}"
|
2020-04-27 21:19:27 +00:00
|
|
|
annotations:
|
|
|
|
summary: "{{ $value|humanize }}"
|
|
|
|
description: "{{$labels}}"
|
|
|
|
|
|
|
|
- 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)
|