From fcea745e9978a9aaf2c7c11407ba70ebe7cad6a2 Mon Sep 17 00:00:00 2001 From: Dark Date: Mon, 4 Jun 2018 10:31:47 +0900 Subject: [PATCH] Change config to match toml parsing rule. (#4225) --- plugins/outputs/http/README.md | 10 +++++----- plugins/outputs/http/http.go | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) 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 (