Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nginx-modules/ngx_http_var_request_speed
Record time of request to $request_speed variable
https://github.com/nginx-modules/ngx_http_var_request_speed
logging module nginx request time upstream
Last synced: 29 days ago
JSON representation
Record time of request to $request_speed variable
- Host: GitHub
- URL: https://github.com/nginx-modules/ngx_http_var_request_speed
- Owner: nginx-modules
- Created: 2013-12-04T07:02:28.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-19T04:55:20.000Z (over 10 years ago)
- Last Synced: 2023-06-29T03:11:04.125Z (over 1 year ago)
- Topics: logging, module, nginx, request, time, upstream
- Language: C
- Homepage:
- Size: 74.2 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nginx variable request_speed
This module create variable $request_speed contain time of request(seconds). Good chooice to track backend (Apache, php-fpm) performance.
Enable by var_request_speed_filter on;
Example log format:
log_format combined2 '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" $gzip_ratio $request_speed';
Example log:
18x.16x.8x.25x - - [15/Nov/2011:06:36:02 -0500] "GET /db/login.php HTTP/1.1" 200 0 "http://domain.com/db/" "Mozilla/5.0 (Linux; U; Android 2.3.3; en-us; Sprint APA9292KT Build/GRI40) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1" - 353 0.200email: [email protected]