Created
September 7, 2018 10:38
-
-
Save wheresalice/0979df35d117591e33ecd7876453b348 to your computer and use it in GitHub Desktop.
Locally validate a directory of Prometheus rules against version 1.7.1
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
.PHONY: test | |
test: | |
docker run -it --rm -v `pwd`:/tmp -w /tmp --entrypoint=/bin/promtool prom/prometheus:v1.7.1 check-rules *.rules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment