Merge pull request #14423 from zexi/automated-cherry-pick-of-#14421-upstream-master

Automated cherry pick of #14421: fix(host): Telegraf 1.19.2 conf
This commit is contained in:
Zexi Li
2022-06-09 15:13:51 +08:00
committed by GitHub
+4 -1
View File
@@ -176,8 +176,11 @@ func (s *STelegraf) GetConfig(kwargs map[string]interface{}) string {
conf += "[[inputs.internal]]\n"
conf += " collect_memstats = false\n"
conf += "\n"
conf += "[[inputs.http_listener]]\n"
conf += "[[inputs.http_listener_v2]]\n"
conf += " service_address = \"127.0.0.1:8087\"\n"
conf += " path = \"/write\"\n"
conf += " data_source = \"body\"\n"
conf += " data_format = \"influx\"\n"
conf += "\n"
return conf
}