aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Kochie <superq@gmail.com>2018-02-19 15:44:59 +0100
committerGitHub <noreply@github.com>2018-02-19 15:44:59 +0100
commitd33a447047f2f98eab5c500017da159fd545b9b6 (patch)
tree29371bc8fcb7624e6edf5fe4630f822c28d134b5 /Makefile
parent7928dc93da6838c27fc2569005e7f7cb2e2782d9 (diff)
downloadprometheus_node_collector-d33a447047f2f98eab5c500017da159fd545b9b6.tar.bz2
prometheus_node_collector-d33a447047f2f98eab5c500017da159fd545b9b6.tar.xz
prometheus_node_collector-d33a447047f2f98eab5c500017da159fd545b9b6.zip
Remove deprecated prometheus.InstrumentHandlerFunc (#831)
Update Prometheus client golang use to use `promhttp.Handler()` instead of `prometheus.InstrumentHandlerFunc()`.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1bbb136..32b5363 100644
--- a/Makefile
+++ b/Makefile
@@ -28,9 +28,7 @@ DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))
28MACH ?= $(shell uname -m) 28MACH ?= $(shell uname -m)
29DOCKERFILE ?= Dockerfile 29DOCKERFILE ?= Dockerfile
30 30
31# TODO: Remove deprecated and problematic InstrumentHandlerFunc usage. 31STATICCHECK_IGNORE =
32STATICCHECK_IGNORE = \
33 github.com/prometheus/node_exporter/node_exporter.go:SA1019
34 32
35ifeq ($(GOHOSTARCH),amd64) 33ifeq ($(GOHOSTARCH),amd64)
36 # Only supported on amd64 34 # Only supported on amd64