Skip to content

cutzmf/nginx-timings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

nginx-timings

nginx request execution time monitoring

HowTo

  1. Set Nginx shared dictionary (http section) and path to search lib + init

lua_shared_dict log_dict 5M;
lua_package_path "/etc/nginx/sites-available/?.lua;;";
init_by_lua 'require("logger")';

  1. Add log_by_lua block in location used to differentiate logical part pf monitoring used to set precision of time (numbers after point)
...

log_by_lua '
    log(ngx.shared.log_dict, "<key>", <float>)
';

...

About

nginx request execution time monitoring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages