Skip to content

Commit

Permalink
Updated http_response input plugin README.md (influxdata#7962)
Browse files Browse the repository at this point in the history
  • Loading branch information
vikkyomkar authored Aug 10, 2020
1 parent 75e701c commit a6c8f5b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions plugins/inputs/http_response/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/http_response/http_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
Expand Down

0 comments on commit a6c8f5b

Please sign in to comment.