squid.conf 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. # netdata python.d.plugin configuration for squid
  2. #
  3. # This file is in YaML format. Generally the format is:
  4. #
  5. # name: value
  6. #
  7. # There are 2 sections:
  8. # - global variables
  9. # - one or more JOBS
  10. #
  11. # JOBS allow you to collect values from multiple sources.
  12. # Each source will have its own set of charts.
  13. #
  14. # JOB parameters have to be indented (using spaces only, example below).
  15. # ----------------------------------------------------------------------
  16. # Global Variables
  17. # These variables set the defaults for all JOBs, however each JOB
  18. # may define its own, overriding the defaults.
  19. # update_every sets the default data collection frequency.
  20. # If unset, the python.d.plugin default is used.
  21. # update_every: 1
  22. # priority controls the order of charts at the netdata dashboard.
  23. # Lower numbers move the charts towards the top of the page.
  24. # If unset, the default for python.d.plugin is used.
  25. # priority: 60000
  26. # penalty indicates whether to apply penalty to update_every in case of failures.
  27. # Penalty will increase every 5 failed updates in a row. Maximum penalty is 10 minutes.
  28. # penalty: yes
  29. # autodetection_retry sets the job re-check interval in seconds.
  30. # The job is not deleted if check fails.
  31. # Attempts to start the job are made once every autodetection_retry.
  32. # This feature is disabled by default.
  33. # autodetection_retry: 0
  34. # ----------------------------------------------------------------------
  35. # JOBS (data collection sources)
  36. #
  37. # The default JOBS share the same *name*. JOBS with the same name
  38. # are mutually exclusive. Only one of them will be allowed running at
  39. # any time. This allows autodetection to try several alternatives and
  40. # pick the one that works.
  41. #
  42. # Any number of jobs is supported.
  43. #
  44. # All python.d.plugin JOBS (for all its modules) support a set of
  45. # predefined parameters. These are:
  46. #
  47. # job_name:
  48. # name: myname # the JOB's name as it will appear at the
  49. # # dashboard (by default is the job_name)
  50. # # JOBs sharing a name are mutually exclusive
  51. # update_every: 1 # the JOB's data collection frequency
  52. # priority: 60000 # the JOB's order on the dashboard
  53. # penalty: yes # the JOB's penalty
  54. # autodetection_retry: 0 # the JOB's re-check interval in seconds
  55. #
  56. # Additionally to the above, squid also supports the following:
  57. #
  58. # host : 'IP or HOSTNAME' # the host to connect to
  59. # port : PORT # the port to connect to
  60. # request: 'URL' # the URL to request from squid
  61. #
  62. # ----------------------------------------------------------------------
  63. # SQUID CONFIGURATION
  64. #
  65. # See:
  66. # http://wiki.squid-cache.org/Features/CacheManager
  67. #
  68. # In short, add to your squid configuration these:
  69. #
  70. # http_access allow localhost manager
  71. # http_access deny manager
  72. #
  73. # To remotely monitor a squid:
  74. #
  75. # acl managerAdmin src 192.0.2.1
  76. # http_access allow localhost manager
  77. # http_access allow managerAdmin manager
  78. # http_access deny manager
  79. #
  80. # ----------------------------------------------------------------------
  81. # AUTO-DETECTION JOBS
  82. # only one of them will run (they have the same name)
  83. tcp3128old:
  84. name : 'local'
  85. host : 'localhost'
  86. port : 3128
  87. request : 'cache_object://localhost:3128/counters'
  88. tcp8080old:
  89. name : 'local'
  90. host : 'localhost'
  91. port : 8080
  92. request : 'cache_object://localhost:3128/counters'
  93. tcp3128new:
  94. name : 'local'
  95. host : 'localhost'
  96. port : 3128
  97. request : '/squid-internal-mgr/counters'
  98. tcp8080new:
  99. name : 'local'
  100. host : 'localhost'
  101. port : 8080
  102. request : '/squid-internal-mgr/counters'
  103. # IPv4
  104. tcp3128oldipv4:
  105. name : 'local'
  106. host : '127.0.0.1'
  107. port : 3128
  108. request : 'cache_object://127.0.0.1:3128/counters'
  109. tcp8080oldipv4:
  110. name : 'local'
  111. host : '127.0.0.1'
  112. port : 8080
  113. request : 'cache_object://127.0.0.1:3128/counters'
  114. tcp3128newipv4:
  115. name : 'local'
  116. host : '127.0.0.1'
  117. port : 3128
  118. request : '/squid-internal-mgr/counters'
  119. tcp8080newipv4:
  120. name : 'local'
  121. host : '127.0.0.1'
  122. port : 8080
  123. request : '/squid-internal-mgr/counters'
  124. # IPv6
  125. tcp3128oldipv6:
  126. name : 'local'
  127. host : '::1'
  128. port : 3128
  129. request : 'cache_object://[::1]:3128/counters'
  130. tcp8080oldipv6:
  131. name : 'local'
  132. host : '::1'
  133. port : 8080
  134. request : 'cache_object://[::1]:3128/counters'
  135. tcp3128newipv6:
  136. name : 'local'
  137. host : '::1'
  138. port : 3128
  139. request : '/squid-internal-mgr/counters'
  140. tcp8080newipv6:
  141. name : 'local'
  142. host : '::1'
  143. port : 8080
  144. request : '/squid-internal-mgr/counters'