From 565dc0d3a1e86da0abeba2abc2d89e1bc3b013ef Mon Sep 17 00:00:00 2001 From: dingbo Date: Wed, 13 Jul 2022 14:39:04 +0800 Subject: [PATCH] docs: refine telegraf.md --- docs/en/08-third-party/03-telegraf.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/en/08-third-party/03-telegraf.md b/docs/en/08-third-party/03-telegraf.md index 61cf17c463..4f1d16eab1 100644 --- a/docs/en/08-third-party/03-telegraf.md +++ b/docs/en/08-third-party/03-telegraf.md @@ -15,15 +15,23 @@ Please refer to the [official documentation](https://docs.influxdata.com/telegra In the Telegraf configuration file (default location `/etc/telegraf/telegraf.conf`) add an `outputs.http` section. -``` + +```conf [[outputs.http]] - url = "/influxdb/v1/write?db=&token=" + url = "/influxdb/v1/write?db=telegraf&token=" method = "POST" timeout = "5s" data_format = "influx" influx_max_line_bytes = 250 ``` + +You are expected to replace and with TDengine cloud URL and token. To obtain the real value of TDengine URL and token, please log in [TDengine Cloud](https://cloud.tdengine.com) + + +In above configuration example, all data will be written to database `telegraf`, but you can change it to any database you prefer. The database will be created automatically if it dose not exists in advance. + + ## Verification plugin Restart Telegraf service: -- GitLab