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