diff --git a/plugins/inputs/http_response/README.md b/plugins/inputs/http_response/README.md index d445f5e7773ab..889b6f4f366e3 100644 --- a/plugins/inputs/http_response/README.md +++ b/plugins/inputs/http_response/README.md @@ -26,6 +26,14 @@ This input plugin checks HTTP/HTTPS connections. ## Whether to follow redirects from the server (defaults to false) # follow_redirects = false + ## Optional file with Bearer token + ## file content is added as an Authorization header + # bearer_token = "/path/to/file" + + ## Optional HTTP Basic Auth Credentials + # username = "username" + # password = "pa$$word" + ## Optional HTTP Request Body # body = ''' # {'fake':'data'} diff --git a/plugins/inputs/http_response/http_response.go b/plugins/inputs/http_response/http_response.go index 1ce1ce591d081..33888503b068f 100644 --- a/plugins/inputs/http_response/http_response.go +++ b/plugins/inputs/http_response/http_response.go @@ -101,7 +101,7 @@ var sampleConfig = ` ## If the response body size exceeds this limit a "body_read_error" will be raised # response_body_max_size = "32MiB" - ## Optional substring or regex match in body of the response + ## Optional substring or regex match in body of the response (case sensitive) # response_string_match = "\"service_status\": \"up\"" # response_string_match = "ok" # response_string_match = "\".*_status\".?:.?\"up\""