diff options
author | Kazumasa Kohtaka <kkohtaka@gmail.com> | 2018-10-31 02:44:17 +0900 |
---|---|---|
committer | Ben Kochie <superq@gmail.com> | 2018-10-30 18:44:17 +0100 |
commit | 9bd44168222b06c3557e25996eab7e4315e470e0 (patch) | |
tree | 354ff94f30ee06b62ab9ebdd94fbc37e68e57ce0 /Makefile | |
parent | 778124a56c515b90e2ea52951666bc119a9aae08 (diff) | |
download | prometheus_node_collector-9bd44168222b06c3557e25996eab7e4315e470e0.tar.bz2 prometheus_node_collector-9bd44168222b06c3557e25996eab7e4315e470e0.tar.xz prometheus_node_collector-9bd44168222b06c3557e25996eab7e4315e470e0.zip |
Makefile: add target for checking Prometheus rules (#1126)
Signed-off-by: Kazumasa Kohtaka <kkohtaka@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -85,7 +85,7 @@ $(eval $(call goarch_pair,amd64,386)) | |||
85 | $(eval $(call goarch_pair,mips64,mips)) | 85 | $(eval $(call goarch_pair,mips64,mips)) |
86 | $(eval $(call goarch_pair,mips64el,mipsel)) | 86 | $(eval $(call goarch_pair,mips64el,mipsel)) |
87 | 87 | ||
88 | all: style vet staticcheck checkmetrics build test $(cross-test) $(test-e2e) | 88 | all: style vet staticcheck checkmetrics checkrules build test $(cross-test) $(test-e2e) |
89 | 89 | ||
90 | .PHONY: test | 90 | .PHONY: test |
91 | test: collector/fixtures/sys/.unpacked | 91 | test: collector/fixtures/sys/.unpacked |
@@ -121,6 +121,11 @@ checkmetrics: $(PROMTOOL) | |||
121 | @echo ">> checking metrics for correctness" | 121 | @echo ">> checking metrics for correctness" |
122 | ./checkmetrics.sh $(PROMTOOL) $(e2e-out) | 122 | ./checkmetrics.sh $(PROMTOOL) $(e2e-out) |
123 | 123 | ||
124 | .PHONY: checkrules | ||
125 | checkrules: $(PROMTOOL) | ||
126 | @echo ">> checking rules for correctness" | ||
127 | find . -name "*rules*.yml" | xargs -I {} $(PROMTOOL) check rules {} | ||
128 | |||
124 | .PHONY: docker | 129 | .PHONY: docker |
125 | docker: | 130 | docker: |
126 | ifeq ($(MACH), ppc64le) | 131 | ifeq ($(MACH), ppc64le) |