How to see nginx rps (requests per second)
brian at akins.org
Fri Jan 6 14:03:58 UTC 2012
On Jan 5, 2012, at 9:12 AM, atrus wrote:
> Is there any other ways to do this automatically instead of manually
> subtract ?! I want to see in live.
we have some command line ruby/perl scripts that do this, pretty simple. If you wanted to do this "in" nginx, I guess the easiest way would be using Lua that did a location_capture of stub_status and cached the value ( using http://wiki.nginx.org/HttpLuaModule#ngx.shared.DICT maybe).
Or, have a script that polls nginx stub status every x seconds and writes it out to a static file that nginx can serve.
I'd rather nginx just provide the raw data and I can slice and dice it for my own needs.
More information about the nginx