]> arthur.barton.de Git - netdata.git/commitdiff
Added examples to nginx.config
authorshadycuz <shadycuz@gmail.com>
Wed, 21 Sep 2016 03:45:21 +0000 (23:45 -0400)
committerGitHub <noreply@github.com>
Wed, 21 Sep 2016 03:45:21 +0000 (23:45 -0400)
Added example nginx config and example job config

conf.d/python.d/nginx.conf

index 1a27d67c522a9d3c9e331dccf00788f22e8047be..6a2460bfbb8d7b0871684573aa679edd3a019725 100644 (file)
@@ -1,5 +1,18 @@
 # netdata python.d.plugin configuration for nginx
 #
+# You must have ngx_http_stub_status_module configured on your nginx server for this
+# plugin to work. The following is an example config.
+# It must be located inside a server { } block.
+#  
+# location /stub_status {
+#   stub_status;
+#   # Security: Only allow access from the IP below.
+#   allow 192.168.1.200;
+#   # Deny anyone else
+#   deny all;
+#  }
+# Location must be /stub_status, nothing else will work.
+#
 # This file is in YaML format. Generally the format is:
 #
 # name: value
 # predefined parameters. These are:
 #
 # job_name:
-#     name: myname     # the JOB's name as it will appear at the
-#                      # dashboard (by default is the job_name)
+#     name: my_name    # the JOB's name as it will appear at the
+#                      # dashboard. If name: is not supplied the
+#                      # job_name: will be used (use _ for spaces)
 #                      # JOBs sharing a name are mutually exclusive
 #     update_every: 1  # the JOB's data collection frequency
 #     priority: 60000  # the JOB's order on the dashboard
 #     retries: 5       # the JOB's number of restoration attempts
 #
-# Additionally to the above, nginx also supports the following:
+# Additionally to the above, this plugin also supports the following:
 #
 #     url: 'URL'       # the URL to fetch nginx's status stats
 #
 #     user: 'username'
 #     pass: 'password'
 #
+# Example
+# 
+# RemoteNginx:
+#     name : 'Reverse_Proxy'
+#     url  : 'http://yourdomain.com/stub_status'
+#
+# "RemoteNginx" will show up in Netdata logs. "Reverse Proxy" will show up in the menu
+# in the nginx section.
 
 # ----------------------------------------------------------------------
 # AUTO-DETECTION JOBS