mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-31 00:00:08 +01:00
bf6c24d0f4
* [vmalert] config parser * make linter be happy * fix test * fix sprintf add test for rule validation
20 lines
459 B
Plaintext
20 lines
459 B
Plaintext
groups:
|
|
- name: group
|
|
rules:
|
|
- alert: InvalidAnnotations
|
|
for: 5m
|
|
expr: vm_rows > 0
|
|
labels:
|
|
label: bar
|
|
annotations:
|
|
summary: "{{ $value }"
|
|
description: "{{$labels}}"
|
|
- alert: UnkownAnnotationsFunction
|
|
for: 5m
|
|
expr: vm_rows > 0
|
|
labels:
|
|
label: bar
|
|
annotations:
|
|
summary: "{{ value|humanize }}"
|
|
description: "{{$labels}}"
|