mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-18 03:24:05 -08:00
1c1b174a8e
* Add a --lint flag to the promtool check rules and check config commands Checking rules with promtool emits warnings in the case of duplicate rules. These warnings do not result in a non-zero exit code and are difficult to spot in CI environments. Additionally, checking for duplicates is closer to a lint check rather than a syntax check. This commit adds a --lint flag to commands which include checking rules. The flag can be used to enable or disable certain linting options and cause the execution to return a non-zero exit code in case those options are not met. Signed-off-by: fpetkovski <filip.petkovsky@gmail.com> * Exit with status 3 on lint error Signed-off-by: fpetkovski <filip.petkovsky@gmail.com> |
||
---|---|---|
.. | ||
testdata | ||
archive.go | ||
backfill.go | ||
backfill_test.go | ||
debug.go | ||
main.go | ||
main_test.go | ||
rules.go | ||
rules_test.go | ||
sd.go | ||
sd_test.go | ||
tsdb.go | ||
unittest.go | ||
unittest_test.go |