Maxim Dounin
May 21, 2015 09:04AM

On Thu, May 21, 2015 at 08:22:43AM -0400, donatasm wrote:

> I want to write my custom nginx module for measuring request processing time
> for every HTTP request received. I need to start counting request processing
> time as early as nginx receives first byte of a request and finish, when it
> sends the last byte in a response. What would the best place be in nginx
> request processing pipeline to plug in my module and these measuring hooks?

The $request_time variable looks like what you need, see$request_time.

Maxim Dounin

nginx mailing list
Subject Author Posted

Best place for metrics module

donatasm May 21, 2015 08:22AM

Re: Best place for metrics module

Maxim Dounin May 21, 2015 09:04AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

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