| 1 | # netdata python.d.plugin configuration for haproxy |
| 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 | # ---------------------------------------------------------------------- |
| 17 | # Global Variables |
| 18 | # These variables set the defaults for all JOBs, however each JOB |
| 19 | # may define its own, overriding the defaults. |
| 20 | |
| 21 | # update_every sets the default data collection frequency. |
| 22 | # If unset, the python.d.plugin default is used. |
| 23 | # update_every: 1 |
| 24 | |
| 25 | # priority controls the order of charts at the netdata dashboard. |
| 26 | # Lower numbers move the charts towards the top of the page. |
| 27 | # If unset, the default for python.d.plugin is used. |
| 28 | # priority: 60000 |
| 29 | |
| 30 | # penalty indicates whether to apply penalty to update_every in case of failures. |
| 31 | # Penalty will increase every 5 failed updates in a row. Maximum penalty is 10 minutes. |
| 32 | # penalty: yes |
| 33 | |
| 34 | # autodetection_retry sets the job re-check interval in seconds. |
| 35 | # The job is not deleted if check fails. |
| 36 | # Attempts to start the job are made once every autodetection_retry. |
| 37 | # This feature is disabled by default. |
| 38 | # autodetection_retry: 0 |
| 39 | |
| 40 | # ---------------------------------------------------------------------- |
| 41 | # JOBS (data collection sources) |
| 42 | # |
| 43 | # The default JOBS share the same *name*. JOBS with the same name |
| 44 | # are mutually exclusive. Only one of them will be allowed running at |
| 45 | # any time. This allows autodetection to try several alternatives and |
| 46 | # pick the one that works. |
| 47 | # |
| 48 | # Any number of jobs is supported. |
| 49 | # |
| 50 | # All python.d.plugin JOBS (for all its modules) support a set of |
| 51 | # predefined parameters. These are: |
| 52 | # |
| 53 | # job_name: |
| 54 | # name: myname # the JOB's name as it will appear at the |
| 55 | # # dashboard (by default is the job_name) |
| 56 | # # JOBs sharing a name are mutually exclusive |
| 57 | # update_every: 1 # the JOB's data collection frequency |
| 58 | # priority: 60000 # the JOB's order on the dashboard |
| 59 | # penalty: yes # the JOB's penalty |
| 60 | # autodetection_retry: 0 # the JOB's re-check interval in seconds |
| 61 | # |
| 62 | # Additionally to the above, haproxy also supports the following: |
| 63 | # |
| 64 | # IMPORTANT: socket MUST BE readable AND writable by netdata user |
| 65 | # |
| 66 | # socket: 'path/to/haproxy/sock' |
| 67 | # |
| 68 | # OR |
| 69 | # url: 'http://<ip.address>:<port>/<url>;csv;norefresh' |
| 70 | # [user: USERNAME] only if stats auth is used |
| 71 | # [pass: PASSWORD] only if stats auth is used |
| 72 | |
| 73 | # ---------------------------------------------------------------------- |
| 74 | # AUTO-DETECTION JOBS |
| 75 | # only one of them will run (they have the same name) |
| 76 | |
| 77 | #via_url: |
| 78 | # user : 'admin' |
| 79 | # pass : 'password' |
| 80 | # url : 'http://127.0.0.1:7000/haproxy_stats;csv;norefresh' |
| 81 | |
| 82 | #via_socket: |
| 83 | # socket: '/var/run/haproxy/admin.sock' |