Add support for sending a request body to http input (#5074)

This commit is contained in:
Daniel Nelson
2018-12-11 19:12:00 -08:00
committed by GitHub
parent cf2b85f383
commit 4d3519756c
3 changed files with 138 additions and 7 deletions

View File

@@ -19,6 +19,13 @@ The HTTP input plugin collects metrics from one or more HTTP(S) endpoints. The
## Optional HTTP headers
# headers = {"X-Special-Header" = "Special-Value"}
## HTTP entity-body to send with POST/PUT requests.
# body = ""
## HTTP Content-Encoding for write request body, can be set to "gzip" to
## compress body or "identity" to apply no encoding.
# content_encoding = "identity"
## Optional HTTP Basic Auth Credentials
# username = "username"
# password = "pa$$word"