From 396e233ac17ee976c3ed3003986f3773aa3b06bf 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 443fcc66e..b43aa5beb 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 0b16d3b34..173f5dfdb 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" ```