mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-19 23:16:26 +01:00
12fe915b48
* [vmalert] add prometheus template function * make linter be happy Co-authored-by: Aliaksandr Valialkin <valyala@gmail.com>
20 lines
456 B
Plaintext
20 lines
456 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|query }}"
|
|
description: "{{$labels}}"
|