Skip to content

Commit

Permalink
issue#409: skip error group members
Browse files Browse the repository at this point in the history
  • Loading branch information
showuon committed May 15, 2024
1 parent 2e60c05 commit a0de138
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kafka_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,10 @@ func (e *Exporter) collect(ch chan<- prometheus.Metric) {
return
}
for _, group := range describeGroups.Groups {
if group.Err != 0 {
klog.Errorf("Cannot describe for the group %s with error code %d", group.GroupId, group.Err)
continue
}
offsetFetchRequest := sarama.OffsetFetchRequest{ConsumerGroup: group.GroupId, Version: 1}
if e.offsetShowAll {
for topic, partitions := range offset {
Expand Down

0 comments on commit a0de138

Please sign in to comment.