mirror of
https://github.com/hanzoai/metrics.git
synced 2026-10-30 20:03:39 +00:00
### 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 <[email protected]> Co-authored-by: kirti purohit <[email protected]> Co-authored-by: Jiekun <[email protected]> Co-authored-by: hagen1778 <[email protected]>
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: |