From 00d142dc63e0e009c22a34659825b8b7ba53d2d3 Mon Sep 17 00:00:00 2001 From: vikkyomkar Date: Mon, 10 Aug 2020 16:24:32 +0530 Subject: [PATCH 1/2] updated Readme file --- plugins/inputs/http_response/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/inputs/http_response/README.md b/plugins/inputs/http_response/README.md index 894619bffa29a..a02feb828cdba 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'} @@ -40,7 +48,7 @@ This input plugin checks HTTP/HTTPS connections. ## 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 (case sensitive) + ## Optional substring or regex match in body of the response # response_string_match = "\"service_status\": \"up\"" # response_string_match = "ok" # response_string_match = "\".*_status\".?:.?\"up\"" From 1213d28c7b4e355a1608fa2741dca5a77b96a5e8 Mon Sep 17 00:00:00 2001 From: vikkyomkar Date: Mon, 10 Aug 2020 16:28:19 +0530 Subject: [PATCH 2/2] updated Readme --- plugins/inputs/http_response/README.md | 2 +- plugins/inputs/http_response/http_response.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/inputs/http_response/README.md b/plugins/inputs/http_response/README.md index a02feb828cdba..5945d19ee1ef4 100644 --- a/plugins/inputs/http_response/README.md +++ b/plugins/inputs/http_response/README.md @@ -48,7 +48,7 @@ This input plugin checks HTTP/HTTPS connections. ## 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\"" 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\""