mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-19 15:30:17 +00:00

* 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
12 lines
252 B
Text
12 lines
252 B
Text
groups:
|
|
- name: groupGorSingleAlert
|
|
rules:
|
|
- alert: VMRows
|
|
for: 5m
|
|
expr: vm_rows > 0
|
|
labels:
|
|
label: bar
|
|
annotations:
|
|
summary: "{{ $value|humanize }}"
|
|
description: "{{$labels}}"
|
|
|