Explanation of fields in stats

237 views
Skip to first unread message

Craig Wickesser

unread,
Dec 10, 2014, 7:21:15 PM12/10/14
to nsq-...@googlegroups.com
I've been looking at NSQ today and particularly the stats, but I had a question about what some of the fields represent.

For a channel:

"depth": 0,
"backend_depth": 0,
"in_flight_count": 0,
"deferred_count": 0,
"message_count": 20915,
"requeue_count": 0,
"timeout_count": 0,

For a client of a channel:

"state": 3,
"ready_count": 200,
"in_flight_count": 0,
"message_count": 20915,
"finish_count": 20915,
"requeue_count": 0,
"connect_ts": 1418256788,

Message count seems obvious, but some of the others I'm not certain about.

Thanks in advance, I didn't find it documented.

Matt Reiferson

unread,
Dec 11, 2014, 7:42:54 AM12/11/14
to Craig Wickesser, nsq-...@googlegroups.com
Hi Craig,

ready_count = number of messages the client said it was ready to receive
in_flight_count = number of messages sent to the client waiting for a response
finish_count = number of messages processed by the client and FINished
requeue_count = number of messages processed by the client and REQueued

Hope this helps...

Matt

Craig Wickesser

unread,
Dec 11, 2014, 10:28:36 AM12/11/14
to nsq-...@googlegroups.com, code...@gmail.com
Matt,

That does help, how about a few more?

deferred_count, depth, backend_depth?

thanks

Matt Reiferson

unread,
Dec 11, 2014, 10:31:05 AM12/11/14
to Craig Wickesser, nsq-...@googlegroups.com
Those are channel stats:

deferred_count = number of messages that have been REQueued w/ a delay (and are pending timeout)
depth = number of messages that are in the queue
backend_depth number of message that are in the queue and persisted to disk rather than in memory
Reply all
Reply to author
Forward
0 new messages