Add 'telegraf.conf'

This commit is contained in:
Adolfo Delorenzo 2022-07-29 08:43:28 +02:00
parent 96c233a0af
commit fcc66696b8
1 changed files with 17 additions and 0 deletions

17
telegraf.conf Normal file
View File

@ -0,0 +1,17 @@
[[outputs.influxdb_v2]]
urls = ["http://influxdb:8086"]
token = "aN63bJ-Y3ek0apvePvLayXNaiEiYtqGdZ-zYV6GtpoeEq_ko2DOsLoOEZzhkSsWDOHrzpaJedIHtxcjxIGExXw=="
organization = "portainer.io"
bucket = "telegraf"
[[outputs.file]]
files = ["stdout", "/tmp/metrics.out"]
[[inputs.mqtt_consumer]]
servers = ["tcp://mosquitto:1883"]
data_format = "value"
data_type = "float"
topics = [
"edge/#"
]