mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
008b649658
### 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>
46 lines
No EOL
1 KiB
Text
46 lines
No EOL
1 KiB
Text
---
|
|
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: |