telegraf/plugins/inputs/nginx
arthtux 0fab573c98 add nginx description 2016-02-28 15:38:46 -05:00
..
README.md add nginx description 2016-02-28 15:38:46 -05:00
nginx.go Seems to be a toml parse bug around triple pounds 2016-02-18 14:36:03 -07:00
nginx_test.go Fix issue 524 2016-01-20 10:57:35 -08:00

README.md

Telegraf Plugin: Nginx

The example plugin gathers metrics about example things

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
    • port
    • server
    • accepts
    • active
    • handled
    • reading
    • requests
    • waiting

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