cloudflare/pint
Publicmirrored from https://github.com/cloudflare/pintAvailable
docs/checks/promq/syntax.md
32lines · modecode
| 1 | --- |
| 2 | layout: default |
| 3 | parent: Checks |
| 4 | grand_parent: Documentation |
| 5 | --- |
| 6 | |
| 7 | # promql/syntax |
| 8 | |
| 9 | This is the most basic check that will report any syntax errors in a PromQL |
| 10 | query on any rule. |
| 11 | |
| 12 | ## Configuration |
| 13 | |
| 14 | This check doesn't have any configuration options. |
| 15 | |
| 16 | ## How to enable it |
| 17 | |
| 18 | This check is enabled by default. |
| 19 | |
| 20 | ## How to disable it |
| 21 | |
| 22 | You can disable this check globally by adding this config block: |
| 23 | |
| 24 | ```js |
| 25 | checks { |
| 26 | disabled = ["promql/syntax"] |
| 27 | } |
| 28 | ``` |
| 29 | |
| 30 | Or you can disable it per rule by adding a comment to it. |
| 31 | |
| 32 | `# pint disable promql/syntax` |
| 33 | |