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 committed Jan 27, 2020
1 parent a81f6d3 commit c8414bf
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 c8414bf

Please sign in to comment.