From 0fab573c9828a3913fb49e22715caab233a77796 Mon Sep 17 00:00:00 2001 From: arthtux Date: Sun, 28 Feb 2016 15:38:46 -0500 Subject: [PATCH 1/2] add nginx description --- plugins/inputs/nginx/README.md | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 plugins/inputs/nginx/README.md diff --git a/plugins/inputs/nginx/README.md b/plugins/inputs/nginx/README.md new file mode 100644 index 000000000..a3d425586 --- /dev/null +++ b/plugins/inputs/nginx/README.md @@ -0,0 +1,50 @@ +# 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 +``` From 1677960caa2f89ac4aa65b16940ed36b506fd8e7 Mon Sep 17 00:00:00 2001 From: arthtux Date: Sun, 28 Feb 2016 15:41:16 -0500 Subject: [PATCH 2/2] correct nginx README --- plugins/inputs/nginx/README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/inputs/nginx/README.md b/plugins/inputs/nginx/README.md index a3d425586..8c64f6311 100644 --- a/plugins/inputs/nginx/README.md +++ b/plugins/inputs/nginx/README.md @@ -1,7 +1,5 @@ # Telegraf Plugin: Nginx -The example plugin gathers metrics about example things - ### Configuration: ``` @@ -13,9 +11,7 @@ The example plugin gathers metrics about example things ### Measurements & Fields: -- measurement - - port - - server +- Measurement - accepts - active - handled