Files
metrics/app/vmalert/config/testdata/rules/rules-multi-doc-duplicates-bad.rules
479ba71704 vmalert: parse multi doc yaml (#6995)
### 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]>
2024-10-08 14:28:32 +02:00

11 lines
165 B
Plaintext

groups:
- name: foo
rules:
- alert: VMRows
expr: vm_rows > 0
---
groups:
- name: foo
rules:
- alert: VMRows
expr: vm_rows > 0