cloudflare/pint
Publicmirrored from https://github.com/cloudflare/pintAvailable
docs/checks/yaml/parse.md
32lines · modecode
| 1 | --- |
| 2 | layout: default |
| 3 | parent: Checks |
| 4 | grand_parent: Documentation |
| 5 | --- |
| 6 | |
| 7 | # yaml/parse |
| 8 | |
| 9 | You will only ever see this check reporting problems if a file containing |
| 10 | Prometheus rules to check doesn't parse as valid [YAML](https://yaml.org/), |
| 11 | meaning that pint is unable to read any rules from that file. |
| 12 | |
| 13 | This includes basic YAML parser checks but will also fail if a rule |
| 14 | block contains duplicated keys, example: |
| 15 | |
| 16 | ```yaml |
| 17 | - record: foo |
| 18 | expr: sum(my_metric) |
| 19 | expr: sum(my_metric) without(instance) |
| 20 | ``` |
| 21 | |
| 22 | ## Configuration |
| 23 | |
| 24 | This check doesn't have any configuration options. |
| 25 | |
| 26 | ## How to enable it |
| 27 | |
| 28 | This check is enabled by default. |
| 29 | |
| 30 | ## How to disable it |
| 31 | |
| 32 | You cannot disable this check. |
| 33 | |