I would love to see this merged somehow!
We write tests for our prometheus alert rules, and when you use --rule-dirs
and let it walk the tree it will pick up any *.yaml or *.yml files. Ideally we could use the --rule-dirs flag and exclude directories like test or filenames with test in them? Is there any way right now to exclude tests?
Steps to reproduce the behavior:
mimirtool rules sync --address=test.example.com --rule-dirs=./prometheus/rules --id anonymous
does not upload
./prometheus/rules/nginx/rules-test.yaml
or
./prometheus/rules/nginx/test/*