1/23/2024 0 Comments Elastic search exporter![]() ![]() Then go binary file comes out, dockerize it. and build with env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build command. How can I download elasticsearch exporter package for linux environment from this branch. Removing intermediate container e0c9b4101bdb Removing intermediate container 164d8708eaae Step 7/9 : COPY -from=builder /go/src//justwatchcom/elasticsearch_exporter/elasticsearch_exporter /bin/elasticsearch_exporter Step 6/9 : MAINTAINER The Prometheus Authors Step 5/9 : FROM quay.io/prometheus/busybox:latest ![]() Removing intermediate container a44568db3170 Ok /justwatchcom/elasticsearch_exporter/pkg/clusterinfoĐ.028s Ok /justwatchcom/elasticsearch_exporter/collectorĐ.033s Go get: upgraded /prometheus/common v0.20.0 => v0.25.0 Go: downloading /prometheus/common v0.20.0 Removing intermediate container 5f6b8a6e32b5 Sending build context to Docker daemon 1.581MB Make: *** Error docker build -t jivco-test-image:v1. The command '/bin/sh -c make' returned a non-zero code: 2 !! command failed: build -o /go/src//justwatchcom/elasticsearch_exporter/elasticsearch_exporter -ldflags -s -X /justwatchcom/elasticsearch_exporter/vendor//prometheus/common/version.Version=1.1.0 -X /justwatchcom/elasticsearch_exporter/vendor//prometheus/common/version.Revision=c4c7d2bf2ed55725515dd27df4fd41b6c0b5c33c -X /justwatchcom/elasticsearch_exporter/vendor//prometheus/common/version.Branch=master -X -X /justwatchcom/elasticsearch_exporter/vendor//prometheus/common/version.BuildDate=20210602-13:38:11 -extldflags '-static' -a -tags netgo /justwatchcom/elasticsearch_exporter: exit status 2 main.go:163:27: undefined: prometheus.Handler Go: downloading /google/go-querystring v1.1.0 Go: downloading /matttproud/golang_protobuf_extensions v1.0.1 Go: downloading /prometheus/procfs v0.6.0 Go: downloading /prometheus/client_model v0.2.0 Go: downloading /google/go-github v17.0.0+incompatible Go: downloading /cespare/xxhash/v2 v2.1.1 ![]() Go: downloading /prometheus/client_golang v1.10.0 Go: downloading /Masterminds/semver v1.5.0 Go: downloading gopkg.in/alecthomas/kingpin.v2 v2.2.6 Go: downloading /prometheus/common v0.25.0 Go: downloading /google/go-github/v25 v25.1.3 Go: downloading /prometheus/promu v0.12.0 Step 3/9 : WORKDIR /go/src//justwatchcom/elasticsearch_exporter go/src//justwatchcom/elasticsearch_exporter Step 1/9 : FROM quay.io/prometheus/golang-builder as builder Sending build context to Docker daemon 11.51MB ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |