Remove deprecated prometheus.InstrumentHandlerFunc (#831)

Update Prometheus client golang use to use `promhttp.Handler()` instead
of `prometheus.InstrumentHandlerFunc()`.
This commit is contained in:
Ben Kochie 2018-02-19 15:44:59 +01:00 committed by GitHub
commit d33a447047
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 31 deletions

View file

@ -28,9 +28,7 @@ DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))
MACH ?= $(shell uname -m)
DOCKERFILE ?= Dockerfile
# TODO: Remove deprecated and problematic InstrumentHandlerFunc usage.
STATICCHECK_IGNORE = \
github.com/prometheus/node_exporter/node_exporter.go:SA1019
STATICCHECK_IGNORE =
ifeq ($(GOHOSTARCH),amd64)
# Only supported on amd64