From: Kai Moritz Date: Fri, 24 Feb 2023 21:08:45 +0000 (+0100) Subject: WIP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=da3f0285271f357fd3a32a8b1a9eb4cdfad39dc5;p=demos%2Fkafka%2Fmonitoring WIP --- diff --git a/burrow_exporter/Dockerfile b/burrow_exporter/Dockerfile new file mode 100644 index 0000000..fedd832 --- /dev/null +++ b/burrow_exporter/Dockerfile @@ -0,0 +1,16 @@ +FROM golang:alpine as glide +RUN apk update +RUN apk add git +RUN go get github.com/Masterminds/glide +WORKDIR /go/src/github.com/jirwin/burrow_exporter +run git clone https://github.com/jirwin/burrow_exporter.git . +RUN glide install +RUN go build burrow-exporter.go + +FROM alpine +COPY --from=glide /go/src/github.com/jirwin/burrow_exporter/burrow-exporter . +ENV BURROW_ADDR http://localhost:8000 +ENV METRICS_ADDR 0.0.0.0:8080 +ENV INTERVAL 30 +ENV API_VERSION 2 +CMD ./burrow-exporter --burrow-addr $BURROW_ADDR --metrics-addr $METRICS_ADDR --interval $INTERVAL --api-version $API_VERSION diff --git a/docker-compose.yml b/docker-compose.yml index 5ecfff2..e9da67e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -91,6 +91,14 @@ services: ports: - 8080:8080 + burrow_exporter: + build: burrow_exporter + environments: + BURROW_ADDR: burrow:8080 + API_VERSION: 3 + ports: + - 8080:8080 + kafka-lag-exporter: image: seglo/kafka-lag-exporter:0.8.2 volumes: