Makefile: add target for checking Prometheus rules (#1126)
Signed-off-by: Kazumasa Kohtaka <kkohtaka@gmail.com>pull/1138/head
parent
778124a56c
commit
9bd4416822
7
Makefile
7
Makefile
|
@ -85,7 +85,7 @@ $(eval $(call goarch_pair,amd64,386))
|
||||||
$(eval $(call goarch_pair,mips64,mips))
|
$(eval $(call goarch_pair,mips64,mips))
|
||||||
$(eval $(call goarch_pair,mips64el,mipsel))
|
$(eval $(call goarch_pair,mips64el,mipsel))
|
||||||
|
|
||||||
all: style vet staticcheck checkmetrics build test $(cross-test) $(test-e2e)
|
all: style vet staticcheck checkmetrics checkrules build test $(cross-test) $(test-e2e)
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: collector/fixtures/sys/.unpacked
|
test: collector/fixtures/sys/.unpacked
|
||||||
|
@ -121,6 +121,11 @@ checkmetrics: $(PROMTOOL)
|
||||||
@echo ">> checking metrics for correctness"
|
@echo ">> checking metrics for correctness"
|
||||||
./checkmetrics.sh $(PROMTOOL) $(e2e-out)
|
./checkmetrics.sh $(PROMTOOL) $(e2e-out)
|
||||||
|
|
||||||
|
.PHONY: checkrules
|
||||||
|
checkrules: $(PROMTOOL)
|
||||||
|
@echo ">> checking rules for correctness"
|
||||||
|
find . -name "*rules*.yml" | xargs -I {} $(PROMTOOL) check rules {}
|
||||||
|
|
||||||
.PHONY: docker
|
.PHONY: docker
|
||||||
docker:
|
docker:
|
||||||
ifeq ($(MACH), ppc64le)
|
ifeq ($(MACH), ppc64le)
|
||||||
|
|
Loading…
Reference in New Issue