Remove deprecated prometheus.InstrumentHandlerFunc (#831)
Update Prometheus client golang use to use `promhttp.Handler()` instead of `prometheus.InstrumentHandlerFunc()`.
This commit is contained in:
parent
7928dc93da
commit
d33a447047
3 changed files with 18 additions and 31 deletions
4
Makefile
4
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue