mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
b099d84271
* Initial rules evaluation support. Rules are now store alerts state in private field `alerts`. Every evaluation updates the alerts and state. Every unique metric received from datastore represents a unique alert, uniqueness is guaranteed by hashing ordered labelset. * merge with master * cleanup * support endAt parameter as 3*evaluationInterval for active alerts * make golint happy
28 lines
611 B
Text
28 lines
611 B
Text
groups:
|
|
- name: group
|
|
rules:
|
|
- alert: InvalidExpr
|
|
for: 5m
|
|
expr: vm_rows{ > 0
|
|
labels:
|
|
label: bar
|
|
annotations:
|
|
summary: "{{ $value }}"
|
|
description: "{{$labels}}"
|
|
- alert: EmptyExpr
|
|
for: 5m
|
|
expr: ""
|
|
labels:
|
|
label: bar
|
|
annotations:
|
|
summary: "{{ $value }}"
|
|
description: "{{$labels}}"
|
|
- alert: ""
|
|
for: 5m
|
|
expr: vm_rows > 0
|
|
labels:
|
|
label: foo
|
|
annotations:
|
|
summary: "{{ $value }}"
|
|
description: "{{$labels}}"
|
|
|