| 1 | # netdata python.d.plugin configuration for traefik health data API |
| 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, traefik plugin also supports the following: |
| 63 | # |
| 64 | # url: '<scheme>://<host>:<port>/<health_page_api>' |
| 65 | # # http://localhost:8080/health |
| 66 | # |
| 67 | # if the URL is password protected, the following are supported: |
| 68 | # |
| 69 | # user: 'username' |
| 70 | # pass: 'password' |
| 71 | # |
| 72 | # ---------------------------------------------------------------------- |
| 73 | # AUTO-DETECTION JOBS |
| 74 | # only one of them will run (they have the same name) |
| 75 | # |
| 76 | local: |
| 77 | url: 'http://localhost:8080/health' |