Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
telegraf: Add MQTT input
Browse files Browse the repository at this point in the history
Change-type: minor
Signed-off-by: Tomás Migone <[email protected]>
  • Loading branch information
tmigone authored and Balena CI committed May 14, 2020
1 parent dd507c6 commit 09f5f2d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions telegraf/telegraf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,19 @@
data_format = "json"
name_override = "balena-sense"

[[inputs.mqtt_consumer]]
servers = [
"tcp://mqtt:1883"
]

topics = [
"sensors"
]

connection_timeout = "30s"
data_format = "json"
name_override = "balena-sense"

[[processors.converter]]
[processors.converter.fields]
integer = ["air_quality_score_accuracy"]

0 comments on commit 09f5f2d

Please sign in to comment.