Created
March 30, 2020 08:52
-
-
Save GillesC/5ff84d841a05cb110d03224a8767856a to your computer and use it in GitHub Desktop.
The Things Network MQTT consumer for Telegraf (Influx)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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