-
Notifications
You must be signed in to change notification settings - Fork 384
collectors NginxCollector
GDR! edited this page Sep 4, 2013
·
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; allow 127.0.0.1; deny all; } }
Options - Generic Options
Setting | Default | Description | Type |
---|---|---|---|
byte_unit | byte | Default numeric output(s) | str |
enabled | False | Enable collecting these metrics | bool |
measure_collector_time | False | Collect the collector run time in ms | bool |
req_host | localhost | Hostname | str |
req_path | /nginx_status | Path | str |
req_port | 8080 | Port | int |
servers.hostname.nginx.act_reads 2
servers.hostname.nginx.act_waits 0
servers.hostname.nginx.act_writes 1
servers.hostname.nginx.active_connections 3
servers.hostname.nginx.conn_accepted 396396
servers.hostname.nginx.conn_handled 396396
servers.hostname.nginx.req_handled 396396