Connecting The Things Network and InfluxDb with MQTT and Telegraf

Hi,
As the title shows, I am trying to connect The Things Network and Influx but i am really unprepared and I am encountering a lot of trouble.
At first none of the guides I followed worked, then I found one that seemed to work but the results are unexpected: telegraf is connected to the source of data but no data enters the database.

I don’t understand why its not working,
Thank you kindly for your help.

Hello @Hircus,
can you please set
debug=true
under the agent part of your config? and share the logs?
Thank you.

Hi!
Thank you for your time, here’s the log with the image:

2020-08-22T08:47:49Z I! Starting Telegraf 1.15.2
2020-08-22T08:47:49Z I! Loaded inputs: mqtt_consumer
2020-08-22T08:47:49Z I! Loaded aggregators:
2020-08-22T08:47:49Z I! Loaded processors:
2020-08-22T08:47:49Z I! Loaded outputs: influxdb_v2
2020-08-22T08:47:49Z I! Tags enabled: host=Ottavio
2020-08-22T08:47:49Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:“Ottavio”, Flush Interval:10s
2020-08-22T08:47:49Z D! [agent] Initializing plugins
2020-08-22T08:47:49Z D! [agent] Connecting outputs
2020-08-22T08:47:49Z D! [agent] Attempting connection to [outputs.influxdb_v2]
2020-08-22T08:47:49Z D! [agent] Successfully connected to outputs.influxdb_v2
2020-08-22T08:47:49Z D! [agent] Starting service inputs
2020-08-22T08:47:50Z D! [inputs.mqtt_consumer] Connecting [tcp://eu.thethings.network:1883]
2020-08-22T08:47:59Z D! [outputs.influxdb_v2] Buffer fullness: 0 / 10000 metrics
2020-08-22T08:48:00Z D! [inputs.mqtt_consumer] Connecting [tcp://eu.thethings.network:1883]

This buffer fullness message indicates that there is nothing to send. Can you share what it looks like on the Things Network side?

Here’s a blog on how to connect to the Things Network. If you go down to the “Getting it into InfluxDB” that’s where it addresses the Telegraf portion.