httpcheck.conf 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # netdata python.d.plugin configuration for httpcheck
  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. # Global Variables
  17. # These variables set the defaults for all JOBs, however each JOB
  18. # may define its own, overriding the defaults.
  19. # update_every sets the default data collection frequency.
  20. # If unset, the httpcheck default is used, which is at 3 seconds.
  21. # update_every: 1
  22. # priority controls the order of charts at the netdata dashboard.
  23. # Lower numbers move the charts towards the top of the page.
  24. # If unset, the default for python.d.plugin is used.
  25. # priority: 60000
  26. # penalty indicates whether to apply penalty to update_every in case of failures.
  27. # Penalty will increase every 5 failed updates in a row. Maximum penalty is 10 minutes.
  28. # penalty: yes
  29. # chart_cleanup sets the default chart cleanup interval in iterations.
  30. # A chart is marked as obsolete if it has not been updated
  31. # 'chart_cleanup' iterations in a row.
  32. # They will be hidden immediately (not offered to dashboard viewer,
  33. # streamed upstream and archived to external databases) and deleted one hour
  34. # later (configurable from netdata.conf).
  35. # -- For this plugin, cleanup MUST be disabled, otherwise we lose response
  36. # time charts
  37. chart_cleanup: 0
  38. # Autodetection and retries do not work for this plugin
  39. # ----------------------------------------------------------------------
  40. # JOBS (data collection sources)
  41. #
  42. # The default JOBS share the same *name*. JOBS with the same name
  43. # are mutually exclusive. Only one of them will be allowed running at
  44. # any time. This allows autodetection to try several alternatives and
  45. # pick the one that works.
  46. #
  47. # Any number of jobs is supported.
  48. #
  49. # -------------------------------
  50. # ATTENTION: Any valid configuration will be accepted, even if initial connection fails!
  51. # -------------------------------
  52. #
  53. # There is intentionally no default config, e.g. for 'localhost'
  54. # job_name:
  55. # name: myname # [optional] the JOB's name as it will appear at the
  56. # # dashboard (by default is the job_name)
  57. # # JOBs sharing a name are mutually exclusive
  58. # update_every: 3 # [optional] the JOB's data collection frequency
  59. # priority: 60000 # [optional] the JOB's order on the dashboard
  60. # penalty: yes # the JOB's penalty
  61. # timeout: 1 # [optional] the timeout when connecting, supports decimals (e.g. 0.5s)
  62. # url: 'http[s]://host-ip-or-dns[:port][path]'
  63. # # [required] the remote host url to connect to. If [:port] is missing, it defaults to 80
  64. # # for HTTP and 443 for HTTPS. [path] is optional too, defaults to /
  65. # header: {'Content-Type': 'application/json'}
  66. # # [optional] the HTTP header sent with the request.
  67. # method: GET # [optional] the HTTP request method (POST, PUT, DELETE, HEAD etc.)
  68. # redirect: yes # [optional] If the remote host returns 3xx status codes, the redirection url will be
  69. # # followed (default).
  70. # body: {'key': 'value'} # [optional] the body sent with the request (e.g. POST, PUT, PATCH).
  71. # status_accepted: # [optional] By default, 200 is accepted. Anything else will result in 'bad status' in the
  72. # # status chart, however: The response time will still be > 0, since the
  73. # # host responded with something.
  74. # # If redirect is enabled, the accepted status will be checked against the redirected page.
  75. # - 200 # Multiple status codes are possible. If you specify 'status_accepted', you would still
  76. # # need to add '200'. E.g. 'status_accepted: [301]' will trigger an error in 'bad status'
  77. # # if code is 200. Do specify numerical entries such as 200, not 'OK'.
  78. # regex: None # [optional] If the status code is accepted, the content of the response will be searched for this
  79. # # regex (if defined). Be aware that you may need to escape the regex string. If redirect is enabled,
  80. # # the regex will be matched to the redirected page, not the initial 3xx response.
  81. # Simple example:
  82. #
  83. # jira:
  84. # url: 'https://jira.localdomain/'
  85. # Complex example:
  86. #
  87. # cool_website:
  88. # url: 'http://cool.website:8080/home'
  89. # status_accepted:
  90. # - 200
  91. # - 204
  92. # regex: <title>My cool website!<\/title>
  93. # timeout: 2
  94. # This plugin is intended for simple cases. Currently, the accuracy of the response time is low and should be used as reference only.