nginx.conf 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. #
  15. # This file is in YaML format. Generally the format is:
  16. #
  17. # name: value
  18. #
  19. # There are 2 sections:
  20. # - global variables
  21. # - one or more JOBS
  22. #
  23. # JOBS allow you to collect values from multiple sources.
  24. # Each source will have its own set of charts.
  25. #
  26. # JOB parameters have to be indented (using spaces only, example below).
  27. # ----------------------------------------------------------------------
  28. # Global Variables
  29. # These variables set the defaults for all JOBs, however each JOB
  30. # may define its own, overriding the defaults.
  31. # update_every sets the default data collection frequency.
  32. # If unset, the python.d.plugin default is used.
  33. # update_every: 1
  34. # priority controls the order of charts at the netdata dashboard.
  35. # Lower numbers move the charts towards the top of the page.
  36. # If unset, the default for python.d.plugin is used.
  37. # priority: 60000
  38. # penalty indicates whether to apply penalty to update_every in case of failures.
  39. # Penalty will increase every 5 failed updates in a row. Maximum penalty is 10 minutes.
  40. # penalty: yes
  41. # autodetection_retry sets the job re-check interval in seconds.
  42. # The job is not deleted if check fails.
  43. # Attempts to start the job are made once every autodetection_retry.
  44. # This feature is disabled by default.
  45. # autodetection_retry: 0
  46. # ----------------------------------------------------------------------
  47. # JOBS (data collection sources)
  48. #
  49. # The default JOBS share the same *name*. JOBS with the same name
  50. # are mutually exclusive. Only one of them will be allowed running at
  51. # any time. This allows autodetection to try several alternatives and
  52. # pick the one that works.
  53. #
  54. # Any number of jobs is supported.
  55. #
  56. # All python.d.plugin JOBS (for all its modules) support a set of
  57. # predefined parameters. These are:
  58. #
  59. # job_name:
  60. # name: myname # the JOB's name as it will appear at the
  61. # # dashboard (by default is the job_name)
  62. # # JOBs sharing a name are mutually exclusive
  63. # update_every: 1 # the JOB's data collection frequency
  64. # priority: 60000 # the JOB's order on the dashboard
  65. # penalty: yes # the JOB's penalty
  66. # autodetection_retry: 0 # the JOB's re-check interval in seconds
  67. #
  68. # Additionally to the above, this plugin also supports the following:
  69. #
  70. # url: 'URL' # the URL to fetch nginx's status stats
  71. #
  72. # if the URL is password protected, the following are supported:
  73. #
  74. # user: 'username'
  75. # pass: 'password'
  76. #
  77. # Example
  78. #
  79. # RemoteNginx:
  80. # name : 'Reverse_Proxy'
  81. # url : 'http://yourdomain.com/stub_status'
  82. #
  83. # "RemoteNginx" will show up in Netdata logs. "Reverse Proxy" will show up in the menu
  84. # in the nginx section.
  85. # ----------------------------------------------------------------------
  86. # AUTO-DETECTION JOBS
  87. # only one of them will run (they have the same name)
  88. localhost:
  89. name : 'local'
  90. url : 'http://localhost/stub_status'
  91. localipv4:
  92. name : 'local'
  93. url : 'http://127.0.0.1/stub_status'
  94. localipv6:
  95. name : 'local'
  96. url : 'http://[::1]/stub_status'