@cryptotaxi247 / netdata-1 / commits / 13840097b

Added examples to nginx.config

Added example nginx config and example job config

shadycuz committed Sep 20, 2016 at 23:45 UTC 13840097b13b840a81b8baa1a616f0134def0fb1
1 file changed +25 -3
conf.d/python.d/nginx.conf
+25 -3
@@ -1,5 +1,18 @@
1 # netdata python.d.plugin configuration for nginx
2 #
3 +# You must have ngx_http_stub_status_module configured on your nginx server for this
4 +# plugin to work. The following is an example config.
5 +# It must be located inside a server { } block.
6 +#
7 +# location /stub_status {
8 +# stub_status;
9 +# # Security: Only allow access from the IP below.
10 +# allow 192.168.1.200;
11 +# # Deny anyone else
12 +# deny all;
13 +# }
14 +# Location must be /stub_status, nothing else will work.
15 +#
16 # This file is in YaML format. Generally the format is:
17 #
18 # name: value
@@ -47,14 +60,15 @@
60 # predefined parameters. These are:
61 #
62 # job_name:
50 -# name: myname # the JOB's name as it will appear at the
51 -# # dashboard (by default is the job_name)
63 +# name: my_name # the JOB's name as it will appear at the
64 +# # dashboard. If name: is not supplied the
65 +# # job_name: will be used (use _ for spaces)
66 # # JOBs sharing a name are mutually exclusive
67 # update_every: 1 # the JOB's data collection frequency
68 # priority: 60000 # the JOB's order on the dashboard
69 # retries: 5 # the JOB's number of restoration attempts
70 #
57 -# Additionally to the above, nginx also supports the following:
71 +# Additionally to the above, this plugin also supports the following:
72 #
73 # url: 'URL' # the URL to fetch nginx's status stats
74 #
@@ -63,6 +77,14 @@
77 # user: 'username'
78 # pass: 'password'
79 #
80 +# Example
81 +#
82 +# RemoteNginx:
83 +# name : 'Reverse_Proxy'
84 +# url : 'http://yourdomain.com/stub_status'
85 +#
86 +# "RemoteNginx" will show up in Netdata logs. "Reverse Proxy" will show up in the menu
87 +# in the nginx section.
88
89 # ----------------------------------------------------------------------
90 # AUTO-DETECTION JOBS