Skip to content

Instantly share code, notes, and snippets.

@edenhill
Created November 22, 2013 09:17
Show Gist options
  • Save edenhill/7597127 to your computer and use it in GitHub Desktop.
Save edenhill/7597127 to your computer and use it in GitHub Desktop.
librdkafkastats.json without arrays. Also includes rtt
{
"ts":22814656926,
"time":1385111797,
"replyq":0,
"brokers":{
"eden.local:9092/bootstrap":{
"name":"eden.local:9092/bootstrap",
"nodeid":-1,
"state":"UP",
"outbuf_cnt":0,
"waitresp_cnt":0,
"tx":1,
"txbytes":25,
"txerrs":0,
"txretries":0,
"rx":1,
"rxbytes":2526,
"rxerrs":0,
"rtt":{
"min":0,
"max":0,
"avg":0,
"cnt":0
},
"toppars":{
}
},
"eden:9092/2":{
"name":"eden:9092/2",
"nodeid":2,
"state":"UP",
"outbuf_cnt":1986,
"waitresp_cnt":5,
"tx":558,
"txbytes":10276091,
"txerrs":0,
"txretries":0,
"rx":320,
"rxbytes":14967,
"rxerrs":0,
"rtt":{
"min":20497,
"max":115369,
"avg":74458,
"cnt":107
},
"toppars":{
"onepart":{
"topic":"onepart",
"partition":0
}
}
},
"eden:9091/1":{
"name":"eden:9091/1",
"nodeid":1,
"state":"UP",
"outbuf_cnt":0,
"waitresp_cnt":0,
"tx":1,
"txbytes":25,
"txerrs":0,
"txretries":0,
"rx":1,
"rxbytes":2526,
"rxerrs":0,
"rtt":{
"min":0,
"max":0,
"avg":0,
"cnt":0
},
"toppars":{
}
}
},
"topics":{
"onepart":{
"topic":"onepart",
"partitions":{
"0":{
"partition":0,
"leader":2,
"desired":false,
"unknown":false,
"msgq_cnt":0,
"msgq_bytes":0,
"xmit_msgq_cnt":0,
"xmit_msgq_bytes":0,
"fetchq_cnt":0,
"fetch_state":"none",
"query_offset":0,
"next_offset":0,
"app_offset":0,
"commited_offset":0,
"eof_offset":0,
"txmsgs":580093,
"txbytes":73091718
},
"-1":{
"partition":-1,
"leader":-1,
"desired":false,
"unknown":false,
"msgq_cnt":0,
"msgq_bytes":0,
"xmit_msgq_cnt":0,
"xmit_msgq_bytes":0,
"fetchq_cnt":0,
"fetch_state":"none",
"query_offset":0,
"next_offset":0,
"app_offset":0,
"commited_offset":0,
"eof_offset":0,
"txmsgs":0,
"txbytes":0
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment