Skip to content

Instantly share code, notes, and snippets.

@wheresalice
Created September 7, 2018 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wheresalice/0979df35d117591e33ecd7876453b348 to your computer and use it in GitHub Desktop.
Save wheresalice/0979df35d117591e33ecd7876453b348 to your computer and use it in GitHub Desktop.
Locally validate a directory of Prometheus rules against version 1.7.1
.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