Allow collection of HTTP Headers in http_response input (#7405)

This commit is contained in:
Nicolas Filotto
2020-05-27 00:52:13 +02:00
committed by GitHub
parent 40fdafe193
commit 7ef1d53551
3 changed files with 90 additions and 0 deletions

View File

@@ -47,6 +47,11 @@ This input plugin checks HTTP/HTTPS connections.
# [inputs.http_response.headers]
# Host = "github.com"
## Optional setting to map reponse http headers into tags
## If the http header is not present on the request, no corresponding tag will be added
## If multiple instances of the http header are present, only the first value will be used
# http_header_tags = {"HTTP_HEADER" = "TAG_NAME"}
## Interface to use when dialing an address
# interface = "eth0"
```