pgjones / hypercorn

Hypercorn is an ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn.
MIT License
1.18k stars 105 forks source link

Count of pending requests #263

Open nabheet opened 3 weeks ago

nabheet commented 3 weeks ago

I realize we have metrics being sent to statsd which are strictly defined in the statsd logger class. We have requests per second and duration. I was curious if there was a way to get the count of pending requests? Pending queue length? Or something like that. Also, wondering if there is a way to get this metric from rps and duration. I could not think of a way to get it so posting here.

Is requests per second the count of requests completed per second? Or the count received per second even if they have not completed yet. So this could might be the pending queue length?