Skip to content

Commit

Permalink
Merge pull request #441 from showuon/409
Browse files Browse the repository at this point in the history
Fix issue#409: skip error group members
  • Loading branch information
danielqsj authored May 24, 2024
2 parents 2e60c05 + a0de138 commit fb7cf1a
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 fb7cf1a

Please sign in to comment.