-
Notifications
You must be signed in to change notification settings - Fork 384
collectors NginxCollector
Rob Smith edited this page Aug 11, 2012
·
16 revisions
Collect statistics from Nginx
- urllib2
To enable the nginx status page to work with defaults, add a file to /etc/nginx/sites-enabled/ (on Ubuntu) with the following content:
server { listen 127.0.0.1:8080; server_name localhost; location /nginx_status { stub_status on; access_log /data/server/shared/log/access.log; allow 127.0.0.1; deny all; } }
- Generic Options
- req_port: Port
- enabled: Enable collecting these metrics
- req_path: Path
- byte_unit: Default numeric output(s)
- req_host: Hostname
__EXAMPLESHERE__