telegraf/plugins/inputs/nginx
Sachin Rase 2f417d431d Ignore the ssl cert part for nginx status
Ignore the cert part as its not going to match top level domain (http://www.xyz.com) if https behind many hosts (host.serverice.datacenter.xyz.com )
2016-07-07 17:45:59 -07:00
..
README.md Add writing in documentation. 2016-04-01 11:46:32 -06:00
nginx.go Ignore the ssl cert part for nginx status 2016-07-07 17:45:59 -07:00
nginx_test.go Added support for Tengine (#1390) 2016-06-21 14:22:51 +01:00

README.md

Telegraf Plugin: Nginx

Configuration:

# Read Nginx's basic status information (ngx_http_stub_status_module)
[[inputs.nginx]]
  ## An array of Nginx stub_status URI to gather stats.
  urls = ["http://localhost/server_status"]

Measurements & Fields:

  • Measurement
    • accepts
    • active
    • handled
    • reading
    • requests
    • waiting
    • writing

Tags:

  • All measurements have the following tags:
    • port
    • server

Example Output:

Using this configuration:

[[inputs.nginx]]
  ## An array of Nginx stub_status URI to gather stats.
  urls = ["http://localhost/status"]

When run with:

./telegraf -config telegraf.conf -input-filter nginx -test

It produces:

* Plugin: nginx, Collection 1
> nginx,port=80,server=localhost accepts=605i,active=2i,handled=605i,reading=0i,requests=12132i,waiting=1i,writing=1i 1456690994701784331