#nginx module for tsar
##Can be used with nginx and tengine both.
-
Install tsar.
-
Generate a new module by using tsardevel.
tsardevel ngx_mod -
Replace ngx_mod.c.
makemake install -
tsar --nginx
###You should be happy with it.
-
We can change nginx server port to be monitored,default is 80.
####example:
export NGX_TSAR_PORT=8080 -
Stub Status module must be included,and add configuration as below:
location = /status {
stub_status on;}