docs/vmagent.md: update Telegraf config in the section about Kafka

This commit is contained in:
Aliaksandr Valialkin 2021-09-29 11:21:15 +03:00
parent 16d7ee7b44
commit f35f9188bc
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1
2 changed files with 8 additions and 16 deletions

View File

@ -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"
```

View File

@ -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"
```