From f35f9188bc8b8610a84474beb3590ffec01e75e4 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 29 Sep 2021 11:21:15 +0300 Subject: [PATCH] docs/vmagent.md: update Telegraf config in the section about Kafka --- app/vmagent/README.md | 12 ++++-------- docs/vmagent.md | 12 ++++-------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/app/vmagent/README.md b/app/vmagent/README.md index 443fcc66e3..b43aa5bebf 100644 --- a/app/vmagent/README.md +++ b/app/vmagent/README.md @@ -555,14 +555,10 @@ The following command starts `vmagent`, which reads metrics in InfluxDB line pro It is expected that [Telegraf](https://github.com/influxdata/telegraf) sends metrics to the `metrics-by-telegraf` topic with the following config: ```yaml -[[inputs.prometheus]] - ## An array of urls to scrape metrics from. - urls = ["http://localhost:8428/metrics"] - - [[outputs.kafka]] - brokers = ["localhost:9092"] - topic = "influx" - data_format = "influx" +[[outputs.kafka]] +brokers = ["localhost:9092"] +topic = "influx" +data_format = "influx" ``` diff --git a/docs/vmagent.md b/docs/vmagent.md index 0b16d3b34f..173f5dfdba 100644 --- a/docs/vmagent.md +++ b/docs/vmagent.md @@ -559,14 +559,10 @@ The following command starts `vmagent`, which reads metrics in InfluxDB line pro It is expected that [Telegraf](https://github.com/influxdata/telegraf) sends metrics to the `metrics-by-telegraf` topic with the following config: ```yaml -[[inputs.prometheus]] - ## An array of urls to scrape metrics from. - urls = ["http://localhost:8428/metrics"] - - [[outputs.kafka]] - brokers = ["localhost:9092"] - topic = "influx" - data_format = "influx" +[[outputs.kafka]] +brokers = ["localhost:9092"] +topic = "influx" +data_format = "influx" ```