Influx Cloud 2.0 + Telegraf

I’m following the link here: Telegraf Setup for MQTT Integration with InfluxDB Cloud | The Things Stack for LoRaWAN

So I tried to test this on my windows machine, but I gave up because window is stupid.
Anyways, I setup a debian instance and configured telegraf, updated the config (as per the instructions) and ran the service.

The service is working, as far as I can tell:

  • journalctl tells me it’s connected to ttn
  • on ttn v3 console, under the live stream, I can see the subscription

I have a test device that’s reporting every 10 minutes. But I can’t seem to get the data into influx. I’ve double checked the credentials, etc.

I know I can run a simple python script (it’s what I did for V2), but I’d like to try telegraf MQTT.

Has anyone come across this?

Hey shiv,

I had the same problem and found a solution. Regarding the docs the MQTT topic has changed.

For TTNv2 I had to subscribe to
topics = [ "+/devices/+/up" ]

whereas for TTNv3 the topic needs to be slightly changed to:
topics = [ "v3/+/devices/+/up" ]

I hope this helps!

1 Like

Thank you jakob,

You saved my day.