nsqio / nsq

A realtime distributed messaging platform
https://nsq.io
MIT License
24.74k stars 2.89k forks source link

nsqd: store metadata for calculating throughput per topic #579

Open detailyang opened 9 years ago

detailyang commented 9 years ago

are there any api for get throughput? Thx in advance:)

mreiferson commented 9 years ago

Unfortunately, nsqd does not store this information. nsqadmin is able to calculate it if you have configured nsqd to push metrics to statsd (and graphite).

Now that I think about it, there are probably some lightweight ways ("nearly free" from a CPU/memory standpoint) to store this in nsqd per topic.

Going to update the issue title.

detailyang commented 9 years ago

if nsqd can provide the api for throughput of producer and consumer, it's more convenient to developer which can monitor and know the metadata about message queue:)