mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-20 23:46:23 +01:00
4c0e79254c
### Describe Your Changes
This PR adds the feature to parse a multi yaml doc following the
`\n---\n`
The issue is
[6753](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6753)
### Checklist
The following checks are **mandatory**:
- [x] My change adheres [VictoriaMetrics contributing
guidelines](https://docs.victoriametrics.com/contributing/).
---------
Signed-off-by: kirti purohit <kirti.purohit@hpe.com>
Co-authored-by: kirti purohit <kirti.purohit@hpe.com>
Co-authored-by: Jiekun <jiekun@victoriametrics.com>
Co-authored-by: hagen1778 <roman@victoriametrics.com>
(cherry picked from commit 008b649658
)
46 lines
1.0 KiB
Plaintext
46 lines
1.0 KiB
Plaintext
---
|
|
groups:
|
|
- name: groupTest
|
|
rules:
|
|
- alert: VMRows
|
|
for: 1ms
|
|
expr: vm_rows > 0
|
|
labels:
|
|
label: bar
|
|
host: "{{ $labels.instance }}"
|
|
annotations:
|
|
summary: "{{ $value }}"
|
|
- name: groupTest-2
|
|
rules:
|
|
- alert: VMRows-2
|
|
for: 1ms
|
|
expr: vm_rows_2 > 0
|
|
labels:
|
|
label: bar2
|
|
host: "{{ $labels.instance }}"
|
|
annotations:
|
|
summary: "\n markdown result is : \n---\n # header\n body: \n text \n----\n"
|
|
---
|
|
groups:
|
|
- name: groupTest-3
|
|
rules:
|
|
- alert: VMRows-3
|
|
for: 1ms
|
|
expr: vm_rows_3 > 0
|
|
labels:
|
|
label: bar_3
|
|
host: "{{ $labels.instance }}"
|
|
annotations:
|
|
summary: "{{ $value }}"
|
|
- name: groupTest-4
|
|
rules:
|
|
- alert: VMRows-4
|
|
for: 1ms
|
|
expr: vm_rows_4 > 0
|
|
labels:
|
|
label: bar4
|
|
host: "{{ $labels.instance }}"
|
|
annotations:
|
|
summary: "{{ $value }}"
|
|
---
|
|
groups: |