Skip to content

Instantly share code, notes, and snippets.

@GillesC
Created March 30, 2020 08:52
Show Gist options
  • Save GillesC/5ff84d841a05cb110d03224a8767856a to your computer and use it in GitHub Desktop.
Save GillesC/5ff84d841a05cb110d03224a8767856a to your computer and use it in GitHub Desktop.
The Things Network MQTT consumer for Telegraf (Influx)
# output DB
[[outputs.influxdb]]
urls = ["http://localhost:8086"]
database = "{database-name}"
username = ""
password = ""
retention_policy = ""
write_consistency = "any"
timeout = "5s"
# Read metrics from MQTT topic(s)
[[inputs.mqtt_consumer]]
servers = ["tcp://eu.thethings.network:1883"]
qos = 0
connection_timeout = "30s"
topics = [
"{app-id}/devices/+/up"
]
persistent_session = false
client_id = ""
username = "{app-id}"
password = "{access-key}"
data_format = "json"
tag_keys = [
"dev_id"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment