Welcome! Log In Create A New Profile

Advanced

Re: nginx stats

Neil Mckee
March 29, 2012 08:14AM
One option is nginx-sflow-module. It reports counters (and transactions) using a standard binary format over UDP - so you can have a whole web-farm reporting to a single port on another server. No log-file-tailing required. If you send the sFlow feed to Ganglia, for example, it will pull out the counters and trend them. If your transaction rate is high you can reduce the load by configuring random sampling on the transaction logging, but the counters will still be 100% accurate.

http://code.google.com/p/nginx-sflow-module/

It works in conjunction with hsflowd, so you also get CPU, mem, I/O stats for each server:
http://host-sflow.sourceforge.net

If anything is missing that should be counted/sampled for a reverse-proxy scenario, please let me know. The sFlow-HTTP spec is here:
http://sflow.org/sflow_http.txt

Neil


On Mar 29, 2012, at 4:52 AM, Samit Pal wrote:

> Folks,
>
> I'am interested in nginx stats like per return status numbers, bytes
> served etc. I run nginx in a reverse proxy mode. I know parsing logs
> will give that, but I wanted to know if there any module which gives
> these stats. I looked in the stub module, i think these stats are not
> there.
>
> Thanks
> samit
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx stats

Samit Pal March 29, 2012 07:54AM

Re: nginx stats

Andrew Alexeev March 29, 2012 07:58AM

Re: nginx stats

Agus March 04, 2013 03:48PM

Re: nginx stats

mex March 06, 2013 01:37AM

Re: nginx stats

Neil Mckee March 29, 2012 08:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 115
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready