Last active
November 23, 2020 06:47
-
-
Save FUSAKLA/3a6709c3542c743f3517056a66fe1589 to your computer and use it in GitHub Desktop.
promruval validation output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ promruval validate --config-file validation.yaml rules.yaml | |
Validation rules used: | |
check-severity-label: | |
- has labels: `severity` | |
- label `severity` has one of the allowed values: `info`,`warning`,`critical` | |
check-playbook-annotation: | |
- has all of these annotations: `playbook`,`title` | |
- Annotation `playbook` is a valid URL and does not return HTTP status 404 | |
check-prometheus-limitations: | |
- expression does not use data older than `5d` | |
- does not use any of the `cluster`,`dc` labels is in its expression | |
Result: | |
File: medium/rules.yaml - INVALID | |
Group: test-group | |
Alert: TrafficDifference1w | |
- label `severity` value `high` is not one of the allowed values: `info`,`warning`,`critical` | |
- missing annotation `title` | |
- URL `https://fusakla.cz/playbook` in the `playbook` Annotation returns HTTP status code 404 NotFound | |
- expr uses `7d5m` old data in matrix selector which is more than limit `5d` | |
- forbidden label `dc` used in expression | |
- forbidden label `dc` used in expression | |
Validation FAILED | |
Statistics: | |
Duration: 168.683322ms | |
Files: 1 and 0 of them excluded | |
Groups: 1 and 0 of them excluded | |
Rules: 1 and 0 of them excluded |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment