From 03b6fe40eab4e482edd0ae176a5e3cdd7a649659 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 22 Feb 2023 00:00:23 +0100 Subject: [PATCH] Added Burrow - See: https://github.com/linkedin/Burrow --- burrow.conf | 43 +++++++++++++++++++++++++++++++++++++++++++ burrow/Dockerfile | 8 ++++++++ docker-compose.yml | 7 +++++++ 3 files changed, 58 insertions(+) create mode 100644 burrow.conf create mode 100644 burrow/Dockerfile diff --git a/burrow.conf b/burrow.conf new file mode 100644 index 0000000..05a9ac7 --- /dev/null +++ b/burrow.conf @@ -0,0 +1,43 @@ +[zookeeper] +servers=[ "zookeeper:2181" ] +timeout=6 +root-path="/burrow" + +[client-profile.docker] +client-id="burrow" +kafka-version="2.0.1" + +[cluster.local] +client-profile="docker" +class-name="kafka" +servers=[ "kafka-1:9092", "kafka-2:9092", "kafka-3:9092" ] +topic-refresh=60 +offset-refresh=30 +groups-reaper-refresh=30 + +[consumer.local] +class-name="kafka" +cluster="local" +servers=[ "kafka-1:9092", "kafka-2:9092", "kafka-3:9092" ] +client-profile="docker" +group-denylist="^(console-consumer-|python-kafka-consumer-|quick-).*$" +group-allowlist="" + +[consumer.local_zk] +class-name="kafka_zk" +cluster="local" +servers=[ "zookeeper:2181" ] +zookeeper-path="/local" +zookeeper-timeout=30 +group-denylist="^(console-consumer-|python-kafka-consumer-|quick-).*$" +group-allowlist="" + +[httpserver.default] +address=":8080" + +[storage.default] +class-name="inmemory" +workers=2 +intervals=15 +expire-group=604800 +min-distance=1 diff --git a/burrow/Dockerfile b/burrow/Dockerfile new file mode 100644 index 0000000..54218d1 --- /dev/null +++ b/burrow/Dockerfile @@ -0,0 +1,8 @@ +ARG VERSION=v1.5.0 + +FROM alpine:3 + +WORKDIR /app +RUN wget -qO- https://github.com/linkedin/Burrow/releases/download/v1.5.0/Burrow_1.5.0_linux_amd64.tar.gz | tar -xzv + +ENTRYPOINT [ "/app/burrow" ] diff --git a/docker-compose.yml b/docker-compose.yml index cdf9e88..5ecfff2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -84,6 +84,13 @@ services: - kafka-2 - kafka-3 + burrow: + build: burrow + volumes: + - ./burrow.conf:/app/burrow.toml:ro + ports: + - 8080:8080 + kafka-lag-exporter: image: seglo/kafka-lag-exporter:0.8.2 volumes: -- 2.20.1