diff --git a/plugins/outputs/http/README.md b/plugins/outputs/http/README.md index 2af3fb27a..5005e9f02 100644 --- a/plugins/outputs/http/README.md +++ b/plugins/outputs/http/README.md @@ -21,11 +21,6 @@ data formats. For data_formats that support batching, metrics are sent in batch # username = "username" # password = "pa$$word" - ## Additional HTTP headers - # [outputs.http.headers] - # # Should be set manually to "application/json" for json data_format - # Content-Type = "text/plain; charset=utf-8" - ## Optional TLS Config # tls_ca = "/etc/telegraf/ca.pem" # tls_cert = "/etc/telegraf/cert.pem" @@ -38,4 +33,9 @@ data formats. For data_formats that support batching, metrics are sent in batch ## more about them here: ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md # data_format = "influx" + + ## Additional HTTP headers + # [outputs.http.headers] + # # Should be set manually to "application/json" for json data_format + # Content-Type = "text/plain; charset=utf-8" ``` diff --git a/plugins/outputs/http/http.go b/plugins/outputs/http/http.go index 4b769a467..198aefe07 100644 --- a/plugins/outputs/http/http.go +++ b/plugins/outputs/http/http.go @@ -29,11 +29,6 @@ var sampleConfig = ` # username = "username" # password = "pa$$word" - ## Additional HTTP headers - # [outputs.http.headers] - # # Should be set to "application/json" for json data_format - # Content-Type = "text/plain; charset=utf-8" - ## Optional TLS Config # tls_ca = "/etc/telegraf/ca.pem" # tls_cert = "/etc/telegraf/cert.pem" @@ -46,6 +41,11 @@ var sampleConfig = ` ## more about them here: ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md # data_format = "influx" + + ## Additional HTTP headers + # [outputs.http.headers] + # # Should be set manually to "application/json" for json data_format + # Content-Type = "text/plain; charset=utf-8" ` const (