Skip to content

Instantly share code, notes, and snippets.

@cablehead
Created July 25, 2016 23:16
Show Gist options
  • Save cablehead/f6153f55b54e97dabb19e47724e4f0ba to your computer and use it in GitHub Desktop.
Save cablehead/f6153f55b54e97dabb19e47724e4f0ba to your computer and use it in GitHub Desktop.
listing kafka groups
const struct rd_kafka_group_list *grplist;
err = rd_kafka_list_groups(rk, NULL, &grplist, 5000);
assert (!err);
for (i = 0 ; i < grplist->group_cnt ; i++) {
const struct rd_kafka_group_info *gi = &grplist->groups[i];
printf("%s\n", gi->group);
}
rd_kafka_group_list_destroy(grplist);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment