metadata.yaml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. plugin_name: python.d.plugin
  2. modules:
  3. - meta:
  4. plugin_name: python.d.plugin
  5. module_name: varnish
  6. monitored_instance:
  7. name: Varnish
  8. link: https://varnish-cache.org/
  9. categories:
  10. - data-collection.web-servers-and-web-proxies
  11. icon_filename: 'varnish.svg'
  12. related_resources:
  13. integrations:
  14. list: []
  15. info_provided_to_referring_integrations:
  16. description: ''
  17. keywords:
  18. - varnish
  19. - varnishstat
  20. - varnishd
  21. - cache
  22. - web server
  23. - web cache
  24. most_popular: false
  25. overview:
  26. data_collection:
  27. metrics_description: |
  28. This collector monitors Varnish metrics about HTTP accelerator global, Backends (VBE) and Storages (SMF, SMA, MSE) statistics.
  29. Note that both, Varnish-Cache (free and open source) and Varnish-Plus (Commercial/Enterprise version), are supported.
  30. method_description: |
  31. It uses the `varnishstat` tool in order to collect the metrics.
  32. supported_platforms:
  33. include: []
  34. exclude: []
  35. multi_instance: false
  36. additional_permissions:
  37. description: |
  38. `netdata` user must be a member of the `varnish` group.
  39. default_behavior:
  40. auto_detection:
  41. description: By default, if the permissions are satisfied, the `varnishstat` tool will be executed on the host.
  42. limits:
  43. description: ''
  44. performance_impact:
  45. description: ''
  46. setup:
  47. prerequisites:
  48. list:
  49. - title: Provide the necessary permissions
  50. description: |
  51. In order for the collector to work, you need to add the `netdata` user to the `varnish` user group, so that it can execute the `varnishstat` tool:
  52. ```
  53. usermod -aG varnish netdata
  54. ```
  55. configuration:
  56. file:
  57. name: python.d/varnish.conf
  58. description: ''
  59. options:
  60. description: |
  61. There are 2 sections:
  62. * Global variables
  63. * One or more JOBS that can define multiple different instances to monitor.
  64. The following options can be defined globally: priority, penalty, autodetection_retry, update_every, but can also be defined per JOB to override the global values.
  65. Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
  66. Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
  67. folding:
  68. title: Config options
  69. enabled: true
  70. list:
  71. - name: instance_name
  72. description: the name of the varnishd instance to get logs from. If not specified, the host name is used.
  73. default_value: '<host name>'
  74. required: true
  75. - name: update_every
  76. description: Sets the default data collection frequency.
  77. default_value: 10
  78. required: false
  79. - name: priority
  80. description: Controls the order of charts at the netdata dashboard.
  81. default_value: 60000
  82. required: false
  83. - name: autodetection_retry
  84. description: Sets the job re-check interval in seconds.
  85. default_value: 0
  86. required: false
  87. - name: penalty
  88. description: Indicates whether to apply penalty to update_every in case of failures.
  89. default_value: yes
  90. required: false
  91. - name: name
  92. description: Job name. This value will overwrite the `job_name` value. JOBS with the same name are mutually exclusive. Only one of them will be allowed running at any time. This allows autodetection to try several alternatives and pick the one that works.
  93. default_value: ''
  94. required: false
  95. examples:
  96. folding:
  97. enabled: true
  98. title: 'Config'
  99. list:
  100. - name: Basic
  101. description: An example configuration.
  102. folding:
  103. enabled: false
  104. config: |
  105. job_name:
  106. instance_name: '<name-of-varnishd-instance>'
  107. troubleshooting:
  108. problems:
  109. list: []
  110. alerts: []
  111. metrics:
  112. folding:
  113. title: Metrics
  114. enabled: false
  115. description: ""
  116. availability: []
  117. scopes:
  118. - name: global
  119. description: "These metrics refer to the entire monitored application."
  120. labels: []
  121. metrics:
  122. - name: varnish.session_connection
  123. description: Connections Statistics
  124. unit: "connections/s"
  125. chart_type: line
  126. dimensions:
  127. - name: accepted
  128. - name: dropped
  129. - name: varnish.client_requests
  130. description: Client Requests
  131. unit: "requests/s"
  132. chart_type: line
  133. dimensions:
  134. - name: received
  135. - name: varnish.all_time_hit_rate
  136. description: All History Hit Rate Ratio
  137. unit: "percentage"
  138. chart_type: stacked
  139. dimensions:
  140. - name: hit
  141. - name: miss
  142. - name: hitpass
  143. - name: varnish.current_poll_hit_rate
  144. description: Current Poll Hit Rate Ratio
  145. unit: "percentage"
  146. chart_type: stacked
  147. dimensions:
  148. - name: hit
  149. - name: miss
  150. - name: hitpass
  151. - name: varnish.cached_objects_expired
  152. description: Expired Objects
  153. unit: "expired/s"
  154. chart_type: line
  155. dimensions:
  156. - name: objects
  157. - name: varnish.cached_objects_nuked
  158. description: Least Recently Used Nuked Objects
  159. unit: "nuked/s"
  160. chart_type: line
  161. dimensions:
  162. - name: objects
  163. - name: varnish.threads_total
  164. description: Number Of Threads In All Pools
  165. unit: "number"
  166. chart_type: line
  167. dimensions:
  168. - name: None
  169. - name: varnish.threads_statistics
  170. description: Threads Statistics
  171. unit: "threads/s"
  172. chart_type: line
  173. dimensions:
  174. - name: created
  175. - name: failed
  176. - name: limited
  177. - name: varnish.threads_queue_len
  178. description: Current Queue Length
  179. unit: "requests"
  180. chart_type: line
  181. dimensions:
  182. - name: in queue
  183. - name: varnish.backend_connections
  184. description: Backend Connections Statistics
  185. unit: "connections/s"
  186. chart_type: line
  187. dimensions:
  188. - name: successful
  189. - name: unhealthy
  190. - name: reused
  191. - name: closed
  192. - name: recycled
  193. - name: failed
  194. - name: varnish.backend_requests
  195. description: Requests To The Backend
  196. unit: "requests/s"
  197. chart_type: line
  198. dimensions:
  199. - name: sent
  200. - name: varnish.esi_statistics
  201. description: ESI Statistics
  202. unit: "problems/s"
  203. chart_type: line
  204. dimensions:
  205. - name: errors
  206. - name: warnings
  207. - name: varnish.memory_usage
  208. description: Memory Usage
  209. unit: "MiB"
  210. chart_type: stacked
  211. dimensions:
  212. - name: free
  213. - name: allocated
  214. - name: varnish.uptime
  215. description: Uptime
  216. unit: "seconds"
  217. chart_type: line
  218. dimensions:
  219. - name: uptime
  220. - name: Backend
  221. description: ""
  222. labels: []
  223. metrics:
  224. - name: varnish.backend
  225. description: Backend {backend_name}
  226. unit: "kilobits/s"
  227. chart_type: area
  228. dimensions:
  229. - name: header
  230. - name: body
  231. - name: Storage
  232. description: ""
  233. labels: []
  234. metrics:
  235. - name: varnish.storage_usage
  236. description: Storage {storage_name} Usage
  237. unit: "KiB"
  238. chart_type: stacked
  239. dimensions:
  240. - name: free
  241. - name: allocated
  242. - name: varnish.storage_alloc_objs
  243. description: Storage {storage_name} Allocated Objects
  244. unit: "objects"
  245. chart_type: line
  246. dimensions:
  247. - name: allocated