mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-16 00:41:24 +01:00
abce2b092f
* app/vmalert: restore alerts state from datasource metrics Vmalert will restore alerts state for rules that have `rule.For` > 0 from previously written timeseries via `remotewrite.url` flag. * app/vmalert: mention remotewerite and remoteread configuration in README
23 lines
663 B
Plaintext
23 lines
663 B
Plaintext
groups:
|
|
- name: groupGorSingleAlert
|
|
rules:
|
|
- alert: VMRows
|
|
for: 10s
|
|
expr: vm_rows > 0
|
|
labels:
|
|
label: bar
|
|
host: "{{ $labels.instance }}"
|
|
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) |