WIP
authorKai Moritz <kai@juplo.de>
Fri, 24 Feb 2023 21:08:45 +0000 (22:08 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 24 Feb 2023 21:08:45 +0000 (22:08 +0100)
burrow_exporter/Dockerfile [new file with mode: 0644]
docker-compose.yml

diff --git a/burrow_exporter/Dockerfile b/burrow_exporter/Dockerfile
new file mode 100644 (file)
index 0000000..fedd832
--- /dev/null
@@ -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
index 5ecfff2..e9da67e 100644 (file)
@@ -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: