You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello All/ @danielqsj , I am facing the following issue.
Cannot get oldest offset of topic kafkatopic2 partition 1: kafka server: In the middle of a leadership election, there is currently no leader for this partition and hence it is unavailable for writes.
Get "http://172.40.1.32:9308/metrics": dial tcp 172.40.1.32:9308: connect: connection refused
and sometimes context length exceeded.
Sometimes the kafka metric in prometheus targets shows down and sometimes up. It keeps toggling
However, when I check the kafka pod logs, it does not show any errors. There are several other apps using the same kafka too and they have no issues.
Also, the above metrics link takes me like 30-40 secs to open. Any pointers for this?
The text was updated successfully, but these errors were encountered:
aditya-iaxis
changed the title
Cannot get oldest offset of topic kafkatopic2 partition 7:
Cannot get oldest offset of topic kafkatopic2 partition 1:
May 23, 2022
I also encountered similar problem.
My log displays: "Cannot get oldest offset of topic kafkatopic2 partition 1: kafka server: In the middle of a leadership election, there is currently no leader for this partition and hence it is unavailable for writes."
And then, "metrics link takes me like 30-40 seconds to open."
This is because the Kafka service is experiencing an issue where some topic partitions have no leader. This results in the exporter taking a long time to retrieve statistics for this topic, causing the metrics link to be very slow.
In this situation:
1、it is advisable to increase the scrape_timeout for Prometheus.
2、In our business context, when the exporter encounters the error mentioned above, it is because one broker has failed, and some topic partitions are indeed unable to write data.
Hello All/ @danielqsj , I am facing the following issue.
Cannot get oldest offset of topic kafkatopic2 partition 1: kafka server: In the middle of a leadership election, there is currently no leader for this partition and hence it is unavailable for writes.
Get "http://172.40.1.32:9308/metrics": dial tcp 172.40.1.32:9308: connect: connection refused
and sometimes context length exceeded.
Sometimes the kafka metric in prometheus targets shows down and sometimes up. It keeps toggling
However, when I check the kafka pod logs, it does not show any errors. There are several other apps using the same kafka too and they have no issues.
Also, the above metrics link takes me like 30-40 secs to open. Any pointers for this?
The text was updated successfully, but these errors were encountered: