update httpcheck.conf (#7952)
* update httpcheck.conf add a description on how to send the header with the request * Update httpcheck.conf Added description on the request body section.
Yashar Nesabian committed
Feb 3, 2020 at 17:02 UTC
ae0ed88628adc1ee6f93b66e63c2941eb2ca8572
1 file changed
+3
collectors/python.d.plugin/httpcheck/httpcheck.conf
+3
@@ -70,9 +70,12 @@ chart_cleanup: 0
70
# url: 'http[s]://host-ip-or-dns[:port][path]'
71
# # [required] the remote host url to connect to. If [:port] is missing, it defaults to 80
72
# # for HTTP and 443 for HTTPS. [path] is optional too, defaults to /
73
+# header: {'Content-Type': 'application/json'}
74
+# # [optional] the HTTP header sent with the request.
75
# method: GET # [optional] the HTTP request method (POST, PUT, DELETE, HEAD etc.)
76
# redirect: yes # [optional] If the remote host returns 3xx status codes, the redirection url will be
77
# # followed (default).
78
+# body: {'key': 'value'} # [optional] the body sent with the request (e.g. POST, PUT, PATCH).
79
# status_accepted: # [optional] By default, 200 is accepted. Anything else will result in 'bad status' in the
80
# # status chart, however: The response time will still be > 0, since the
81
# # host responded with something.