metadata.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. # This collector will not appear in documentation, as the go version is preferred,
  2. # https://github.com/netdata/go.d.plugin/blob/master/modules/haproxy/README.md
  3. #
  4. #
  5. # meta:
  6. # plugin_name: python.d.plugin
  7. # module_name: haproxy
  8. # monitored_instance:
  9. # name: HAProxy
  10. # link: 'https://www.haproxy.org/'
  11. # categories:
  12. # - data-collection.web-servers-and-web-proxies
  13. # icon_filename: 'haproxy.png'
  14. # related_resources:
  15. # integrations:
  16. # list: []
  17. # info_provided_to_referring_integrations:
  18. # description: ''
  19. # keywords:
  20. # - haproxy
  21. # - tcp
  22. # - balancer
  23. # most_popular: false
  24. # overview:
  25. # data_collection:
  26. # metrics_description: 'This collector monitors HAProxy metrics about frontend servers, backend servers, responses and more.'
  27. # method_description: 'It connects to the HAProxy instance via URL or UNIX socket.'
  28. # supported_platforms:
  29. # include: []
  30. # exclude: []
  31. # multi_instance: true
  32. # additional_permissions:
  33. # description: ''
  34. # default_behavior:
  35. # auto_detection:
  36. # description: ''
  37. # limits:
  38. # description: ''
  39. # performance_impact:
  40. # description: ''
  41. # setup:
  42. # prerequisites:
  43. # list:
  44. # - title: 'HAProxy setup for socket'
  45. # description: 'Socket must be readable and writable by the netdata user.'
  46. # - title: 'HAProxy setup for URL'
  47. # description: 'URL must have `stats uri <path>` present in the haproxy config, otherwise you will get HTTP 503 in the haproxy logs.'
  48. # configuration:
  49. # file:
  50. # name: python.d/haproxy.conf
  51. # options:
  52. # description: |
  53. # There are 2 sections:
  54. # * Global variables
  55. # * One or more JOBS that can define multiple different instances to monitor.
  56. # 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.
  57. # Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
  58. # Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
  59. # folding:
  60. # title: "Config options"
  61. # enabled: true
  62. # list:
  63. # - name: update_every
  64. # description: Sets the default data collection frequency.
  65. # default_value: 5
  66. # required: false
  67. # - name: priority
  68. # description: Controls the order of charts at the netdata dashboard.
  69. # default_value: 60000
  70. # required: false
  71. # - name: autodetection_retry
  72. # description: Sets the job re-check interval in seconds.
  73. # default_value: 0
  74. # required: false
  75. # - name: penalty
  76. # description: Indicates whether to apply penalty to update_every in case of failures.
  77. # default_value: yes
  78. # required: false
  79. # - name: name
  80. # 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.
  81. # default_value: ''
  82. # required: false
  83. # - name: user
  84. # description: Username if stats auth is used.
  85. # default_value: ''
  86. # required: false
  87. # - name: pass
  88. # description: Password if stats auth is used.
  89. # default_value: ''
  90. # required: false
  91. # - name: url
  92. # description: URL to the haproxy_stats endpoint. Also make sure the parameters `csv` and `norefresh` are provided.
  93. # default_value: ''
  94. # required: false
  95. # - name: socket
  96. # description: Unix socket path to the haproxy sock file.
  97. # default_value: ''
  98. # required: false
  99. # examples:
  100. # folding:
  101. # enabled: true
  102. # title: "Config"
  103. # list:
  104. # - name: URL method
  105. # description: Use a URL to specify the endpoint to check for haproxy statistics.
  106. # config: |
  107. # via_url:
  108. # user: 'username' # ONLY IF stats auth is used
  109. # pass: 'password' # # ONLY IF stats auth is used
  110. # url: 'http://ip.address:port/url;csv;norefresh'
  111. # - name: Local socket
  112. # description: Use a local socket to check for haproxy statistics.
  113. # config: |
  114. # via_socket:
  115. # socket: 'path/to/haproxy/sock'
  116. # troubleshooting:
  117. # problems:
  118. # list: []
  119. # alerts:
  120. # - name: haproxy_backend_server_status
  121. # link: https://github.com/netdata/netdata/blob/master/health/health.d/haproxy.conf
  122. # metric: haproxy_hs.down
  123. # info: average number of failed haproxy backend servers over the last 10 seconds
  124. # - name: haproxy_backend_status
  125. # link: https://github.com/netdata/netdata/blob/master/health/health.d/haproxy.conf
  126. # metric: haproxy_hb.down
  127. # info: average number of failed haproxy backends over the last 10 seconds
  128. # metrics:
  129. # folding:
  130. # title: Metrics
  131. # enabled: false
  132. # description: ""
  133. # availability: []
  134. # scopes:
  135. # - name: global
  136. # description: 'These metrics refer to the entire monitored application.'
  137. # labels: []
  138. # metrics:
  139. # - name: haproxy_f.bin
  140. # description: Kilobytes In
  141. # unit: "KiB/s"
  142. # chart_type: line
  143. # dimensions:
  144. # - name: a dimension per frontend server
  145. # - name: haproxy_f.bout
  146. # description: Kilobytes Out
  147. # unit: "KiB/s"
  148. # chart_type: line
  149. # dimensions:
  150. # - name: a dimension per frontend server
  151. # - name: haproxy_f.scur
  152. # description: Sessions Active
  153. # unit: "sessions"
  154. # chart_type: line
  155. # dimensions:
  156. # - name: a dimension per frontend server
  157. # - name: haproxy_f.qcur
  158. # description: Session In Queue
  159. # unit: "sessions"
  160. # chart_type: line
  161. # dimensions:
  162. # - name: a dimension per frontend server
  163. # - name: haproxy_f.hrsp_1xx
  164. # description: HTTP responses with 1xx code
  165. # unit: "responses/s"
  166. # chart_type: line
  167. # dimensions:
  168. # - name: a dimension per frontend server
  169. # - name: haproxy_f.hrsp_2xx
  170. # description: HTTP responses with 2xx code
  171. # unit: "responses/s"
  172. # chart_type: line
  173. # dimensions:
  174. # - name: a dimension per frontend server
  175. # - name: haproxy_f.hrsp_3xx
  176. # description: HTTP responses with 3xx code
  177. # unit: "responses/s"
  178. # chart_type: line
  179. # dimensions:
  180. # - name: a dimension per frontend server
  181. # - name: haproxy_f.hrsp_4xx
  182. # description: HTTP responses with 4xx code
  183. # unit: "responses/s"
  184. # chart_type: line
  185. # dimensions:
  186. # - name: a dimension per frontend server
  187. # - name: haproxy_f.hrsp_5xx
  188. # description: HTTP responses with 5xx code
  189. # unit: "responses/s"
  190. # chart_type: line
  191. # dimensions:
  192. # - name: a dimension per frontend server
  193. # - name: haproxy_f.hrsp_other
  194. # description: HTTP responses with other codes (protocol error)
  195. # unit: "responses/s"
  196. # chart_type: line
  197. # dimensions:
  198. # - name: a dimension per frontend server
  199. # - name: haproxy_f.hrsp_total
  200. # description: HTTP responses
  201. # unit: "responses"
  202. # chart_type: line
  203. # dimensions:
  204. # - name: a dimension per frontend server
  205. # - name: haproxy_b.bin
  206. # description: Kilobytes In
  207. # unit: "KiB/s"
  208. # chart_type: line
  209. # dimensions:
  210. # - name: a dimension per backend server
  211. # - name: haproxy_b.bout
  212. # description: Kilobytes Out
  213. # unit: "KiB/s"
  214. # chart_type: line
  215. # dimensions:
  216. # - name: a dimension per backend server
  217. # - name: haproxy_b.scur
  218. # description: Sessions Active
  219. # unit: "sessions"
  220. # chart_type: line
  221. # dimensions:
  222. # - name: a dimension per backend server
  223. # - name: haproxy_b.qcur
  224. # description: Sessions In Queue
  225. # unit: "sessions"
  226. # chart_type: line
  227. # dimensions:
  228. # - name: a dimension per backend server
  229. # - name: haproxy_b.hrsp_1xx
  230. # description: HTTP responses with 1xx code
  231. # unit: "responses/s"
  232. # chart_type: line
  233. # dimensions:
  234. # - name: a dimension per backend server
  235. # - name: haproxy_b.hrsp_2xx
  236. # description: HTTP responses with 2xx code
  237. # unit: "responses/s"
  238. # chart_type: line
  239. # dimensions:
  240. # - name: a dimension per backend server
  241. # - name: haproxy_b.hrsp_3xx
  242. # description: HTTP responses with 3xx code
  243. # unit: "responses/s"
  244. # chart_type: line
  245. # dimensions:
  246. # - name: a dimension per backend server
  247. # - name: haproxy_b.hrsp_4xx
  248. # description: HTTP responses with 4xx code
  249. # unit: "responses/s"
  250. # chart_type: line
  251. # dimensions:
  252. # - name: a dimension per backend server
  253. # - name: haproxy_b.hrsp_5xx
  254. # description: HTTP responses with 5xx code
  255. # unit: "responses/s"
  256. # chart_type: line
  257. # dimensions:
  258. # - name: a dimension per backend server
  259. # - name: haproxy_b.hrsp_other
  260. # description: HTTP responses with other codes (protocol error)
  261. # unit: "responses/s"
  262. # chart_type: line
  263. # dimensions:
  264. # - name: a dimension per backend server
  265. # - name: haproxy_b.hrsp_total
  266. # description: HTTP responses (total)
  267. # unit: "responses/s"
  268. # chart_type: line
  269. # dimensions:
  270. # - name: a dimension per backend server
  271. # - name: haproxy_b.qtime
  272. # description: The average queue time over the 1024 last requests
  273. # unit: "milliseconds"
  274. # chart_type: line
  275. # dimensions:
  276. # - name: a dimension per backend server
  277. # - name: haproxy_b.ctime
  278. # description: The average connect time over the 1024 last requests
  279. # unit: "milliseconds"
  280. # chart_type: line
  281. # dimensions:
  282. # - name: a dimension per backend server
  283. # - name: haproxy_b.rtime
  284. # description: The average response time over the 1024 last requests
  285. # unit: "milliseconds"
  286. # chart_type: line
  287. # dimensions:
  288. # - name: a dimension per backend server
  289. # - name: haproxy_b.ttime
  290. # description: The average total session time over the 1024 last requests
  291. # unit: "milliseconds"
  292. # chart_type: line
  293. # dimensions:
  294. # - name: a dimension per backend server
  295. # - name: haproxy_hs.down
  296. # description: Backend Servers In DOWN State
  297. # unit: "failed servers"
  298. # chart_type: line
  299. # dimensions:
  300. # - name: a dimension per backend server
  301. # - name: haproxy_hs.up
  302. # description: Backend Servers In UP State
  303. # unit: "health servers"
  304. # chart_type: line
  305. # dimensions:
  306. # - name: a dimension per backend server
  307. # - name: haproxy_hb.down
  308. # description: Is Backend Failed?
  309. # unit: "boolean"
  310. # chart_type: line
  311. # dimensions:
  312. # - name: a dimension per backend server
  313. # - name: haproxy.idle
  314. # description: The Ratio Of Polling Time Vs Total Time
  315. # unit: "percentage"
  316. # chart_type: line
  317. # dimensions:
  318. # - name: idle