Skip to content

Instantly share code, notes, and snippets.

@edenhill
Created October 16, 2013 22:03
Show Gist options
  • Save edenhill/7015719 to your computer and use it in GitHub Desktop.
Save edenhill/7015719 to your computer and use it in GitHub Desktop.
librdkafka statistics output
{
"ts": 268229898540,
"time": 1381960888,
"replyq": 0,
"brokers": [
{
"name": "localhost:9092/bootstrap",
"nodeid": -1,
"state": "UP",
"outbuf_cnt": 0,
"waitresp_cnt": 0,
"tx": 1,
"txbytes": 25,
"txerrs": 0,
"txretries": 0,
"rx": 1,
"rxbytes": 2413,
"rxerrs": 0,
"toppars": [ ]
},
{
"name": "eden:9092/2",
"nodeid": 2,
"state": "UP",
"outbuf_cnt": 2064,
"waitresp_cnt": 40,
"tx": 16750,
"txbytes": 218028223,
"txerrs": 0,
"txretries": 0,
"rx": 15913,
"rxbytes": 622981,
"rxerrs": 0,
"toppars": [
{
"topic": "onepart",
"partition": 0
}
]
},
{
"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": 2413,
"rxerrs": 0,
"toppars": [ ]
}
],
"topics": [
{
"topic": "onepart",
"partitions": [
{
"partition": 0,
"leader": 2,
"desired": false,
"unknown": false,
"msgq_cnt": 461,
"msgq_bytes": 14291,
"xmit_msgq_cnt": 798,
"xmit_msgq_bytes": 24738,
"fetchq_cnt": 0,
"fetch_state": "none",
"query_offset": 0,
"next_offset": 0,
"app_offset": 0,
"commited_offset": 0,
"eof_offset": 0,
"txmsgs": 4295372,
"txbytes": 244836204
},
{
"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