Welcome! Log In Create A New Profile

Advanced

Can i collect stats without modifying nginx core code?

January 29, 2012 05:37AM
Hello,
I'm trying to write a module that will collect extended stats, that is more then what is offered by stub_status. I've dumped a couple of stats, but had to modify source code outside the module. Modifying vanilla source isn't an option for me. So before I begin, I was wondering if I could get some information:

1) Can I collect stats on every request? I want to know how many bytes were written in the body and headers out to the client.
2) Is it possible to collect stats on reverse proxy's? IE: how many upstream connections are there, have there been, failed, 50x's?
3) Do this all inside of a module?

Thanks in advance.
Subject Author Posted

Can i collect stats without modifying nginx core code?

trojan2748 January 29, 2012 05:37AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 181
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