aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKazumasa Kohtaka <kkohtaka@gmail.com>2018-10-31 02:44:17 +0900
committerBen Kochie <superq@gmail.com>2018-10-30 18:44:17 +0100
commit9bd44168222b06c3557e25996eab7e4315e470e0 (patch)
tree354ff94f30ee06b62ab9ebdd94fbc37e68e57ce0 /Makefile
parent778124a56c515b90e2ea52951666bc119a9aae08 (diff)
downloadprometheus_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--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dae2c8e..459c762 100644
--- a/Makefile
+++ b/Makefile
@@ -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
88all: style vet staticcheck checkmetrics build test $(cross-test) $(test-e2e) 88all: style vet staticcheck checkmetrics checkrules build test $(cross-test) $(test-e2e)
89 89
90.PHONY: test 90.PHONY: test
91test: collector/fixtures/sys/.unpacked 91test: 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
125checkrules: $(PROMTOOL)
126 @echo ">> checking rules for correctness"
127 find . -name "*rules*.yml" | xargs -I {} $(PROMTOOL) check rules {}
128
124.PHONY: docker 129.PHONY: docker
125docker: 130docker:
126ifeq ($(MACH), ppc64le) 131ifeq ($(MACH), ppc64le)