prometheus-community/json_exporter

Need help in setting this up

manithanu123 opened this issue · 0 comments

I'm trying to setup Prometheus Json exporter from https://github.com/prometheus-community/json_exporter. I tried to build using make build command, but it throws error here. I'm uisng go version go1.13.8 linux/amd64. Any idea how to resolve this?

/root/go/bin/promu build --prefix /json_exporter

json_exporter
go: github.com/Masterminds/sprig/v3@v3.2.3: Get https://proxy.golang.org/github.com/%21masterminds/sprig/v3/@v/v3.2.3.mod: x509: certificate signed by unknown authority
!! command failed: build -o /json_exporter/json_exporter -ldflags -X github.com/prometheus/common/version.Version=0.5.0 -X github.com/prometheus/common/version.Revision=9230bf73c5cc0e7e2699a18b9428ac2dc25a284d -X github.com/prometheus/common/version.Branch=master -X github.com/prometheus/common/version.BuildUser=root@e0bc3ac42b4a -X github.com/prometheus/common/version.BuildDate=20230217-21:10:15 -extldflags '-static' -a -tags 'netgo static_build' github.com/prometheus-community/json_exporter: exit status 1
make: *** [Makefile.common:198: common-build] Error 1