Skip to content

Cannot get current offset of topic #467

Open
@willzhang

Description

@willzhang

version

v1.8.0

run

docker run -d --name kafka-exporter --net host danielqsj/kafka-exporter \
--kafka.server=broker01:9092 --kafka.server=broker02:9092 --kafka.server=broker03:9092

when i shutdown broker03

root@broker03:~# shutdown -h now

kafka exporter will not work.

root@localhost:~# docker logs -f kafka-exporter 
I1228 10:48:47.209688       1 kafka_exporter.go:823] Starting kafka_exporter (version=1.8.0, branch=master, revision=477643dd764c46ddd804ac4bd4022be877e3085b)
I1228 10:48:47.212182       1 kafka_exporter.go:994] Listening on HTTP :9308
E1228 10:49:07.961168       1 kafka_exporter.go:431] Cannot get current offset of topic test partition 2: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:49:14.101113       1 kafka_exporter.go:443] Cannot get oldest offset of topic test partition 2: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:49:23.317286       1 kafka_exporter.go:431] Cannot get current offset of topic test partition 3: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:49:29.461203       1 kafka_exporter.go:443] Cannot get oldest offset of topic test partition 3: dial tcp 192.168.72.53:9092: connect: no route to host
I1228 10:49:29.463354       1 kafka_exporter.go:678] [broker01:9092 broker02:9092 broker03:9092]
E1228 10:49:32.533175       1 kafka_exporter.go:557] Cannot get consumer group: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:49:52.953301       1 kafka_exporter.go:431] Cannot get current offset of topic test partition 2: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:49:59.093227       1 kafka_exporter.go:443] Cannot get oldest offset of topic test partition 2: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:50:05.237151       1 kafka_exporter.go:431] Cannot get current offset of topic test partition 3: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:50:11.381274       1 kafka_exporter.go:443] Cannot get oldest offset of topic test partition 3: dial tcp 192.168.72.53:9092: connect: no route to host
I1228 10:50:11.383577       1 kafka_exporter.go:678] [broker01:9092 broker02:9092 broker03:9092]
E1228 10:50:14.453387       1 kafka_exporter.go:557] Cannot get consumer group: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:50:20.601115       1 kafka_exporter.go:431] Cannot get current offset of topic test partition 2: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:50:26.741319       1 kafka_exporter.go:443] Cannot get oldest offset of topic test partition 2: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:50:32.885064       1 kafka_exporter.go:431] Cannot get current offset of topic test partition 3: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:50:39.029210       1 kafka_exporter.go:443] Cannot get oldest offset of topic test partition 3: dial tcp 192.168.72.53:9092: connect: no route to host
I1228 10:50:39.031099       1 kafka_exporter.go:678] [broker02:9092 broker03:9092 broker01:9092]
E1228 10:50:42.101294       1 kafka_exporter.go:557] Cannot get consumer group: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:50:52.949204       1 kafka_exporter.go:431] Cannot get current offset of topic test partition 2: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:51:02.165335       1 kafka_exporter.go:443] Cannot get oldest offset of topic test partition 2: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:51:11.381128       1 kafka_exporter.go:431] Cannot get current offset of topic test partition 3: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:51:20.597036       1 kafka_exporter.go:443] Cannot get oldest offset of topic test partition 3: dial tcp 192.168.72.53:9092: connect: no route to host
I1228 10:51:20.598688       1 kafka_exporter.go:678] [broker01:9092 broker02:9092 broker03:9092]
E1228 10:51:23.669206       1 kafka_exporter.go:557] Cannot get consumer group: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:51:41.045335       1 kafka_exporter.go:431] Cannot get current offset of topic test partition 2: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:51:47.189132       1 kafka_exporter.go:443] Cannot get oldest offset of topic test partition 2: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:51:53.333226       1 kafka_exporter.go:431] Cannot get current offset of topic test partition 3: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:51:59.477212       1 kafka_exporter.go:443] Cannot get oldest offset of topic test partition 3: dial tcp 192.168.72.53:9092: connect: no route to host
I1228 10:51:59.479179       1 kafka_exporter.go:678] [broker02:9092 broker03:9092 broker01:9092]
E1228 10:52:02.549478       1 kafka_exporter.go:557] Cannot get consumer group: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:52:22.969221       1 kafka_exporter.go:431] Cannot get current offset of topic test partition 2: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:52:29.109287       1 kafka_exporter.go:443] Cannot get oldest offset of topic test partition 2: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:52:35.253045       1 kafka_exporter.go:431] Cannot get current offset of topic test partition 3: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:52:41.397266       1 kafka_exporter.go:443] Cannot get oldest offset of topic test partition 3: dial tcp 192.168.72.53:9092: connect: no route to host
I1228 10:52:41.399528       1 kafka_exporter.go:678] [broker02:9092 broker03:9092 broker01:9092]
E1228 10:52:44.469042       1 kafka_exporter.go:557] Cannot get consumer group: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:52:50.613047       1 kafka_exporter.go:431] Cannot get current offset of topic test partition 2: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:52:56.757115       1 kafka_exporter.go:443] Cannot get oldest offset of topic test partition 2: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:53:02.901292       1 kafka_exporter.go:431] Cannot get current offset of topic test partition 3: dial tcp 192.168.72.53:9092: connect: no route to host
E1228 10:53:09.045316       1 kafka_exporter.go:443] Cannot get oldest offset of topic test partition 3: dial tcp 192.168.72.53:9092: connect: no route to host
I1228 10:53:09.047353       1 kafka_exporter.go:678] [broker01:9092 broker02:9092 broker03:9092]
E1228 10:53:12.117223       1 kafka_exporter.go:557] Cannot get consumer group: dial tcp 192.168.72.53:9092: connect: no route to host

prometheus target error
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions