redis / ioredis

🚀 A robust, performance-focused, and full-featured Redis client for Node.js.
MIT License
14.44k stars 1.2k forks source link

Metrics / observability #1150

Open thepatrick opened 4 years ago

thepatrick commented 4 years ago

Howdy!

I'm using IORedis and would love it if I had some visibility into when commands are backing up - the lengths of the commandQueue and offlineQueue map quite well to this (from the client side anyway).

Would y'all be open to adding an API for getting the length of those queues? (I'm happy to submit a PR to implement it!)

luin commented 4 years ago

I think we've already provided access to *Queue.length so it should be enough for your use case right?

dt-atkinson commented 3 years ago

@luin I don't see this in the API unless I'm being blind?

scopsy commented 1 year ago

@dt-atkinson did you found how to do this? Can't find it either :(

dt-atkinson commented 1 year ago

@dt-atkinson did you found how to do this? Can't find it either :(

No, although I didn't check recently