Add prometheus metrics exporter

This should add metrics parity to the Python version
This commit is contained in:
Ian Fijolek
2019-11-15 11:25:21 -08:00
parent 1f6193e486
commit 457e19af9b
6 changed files with 211 additions and 7 deletions
+3 -3
View File
@@ -1,6 +1,7 @@
.PHONY: all
DOCKER_TAG ?= minitor-go-${USER}
.PHONY: test
.PHONY: default
default: test
.PHONY: build
@@ -12,7 +13,7 @@ minitor-go:
.PHONY: run
run: minitor-go build
./minitor-go -debug
./minitor-go -debug -metrics
.PHONY: test
test:
@@ -24,7 +25,6 @@ test:
@go tool cover -func=coverage.out | awk -v target=80.0% \
'/^total:/ { print "Total coverage: " $$3 " Minimum coverage: " target; if ($$3+0.0 >= target+0.0) print "ok"; else { print "fail"; exit 1; } }'
.PHONY: clean
clean:
rm -f ./minitor-go