Openwrt data to Influxdb v2

Does anyone have a proper how to guide to get data from Openwrt to Influxdb v2?

Most articles out there are in regards to older versions of Influxdb.

It used to be collectd → influxdb → Grafana.

Now I believe it is collectd → telegraf ->influxdb → Grafana.

On the Openwrt Router I followed these steps.

Telegraf won’t load it keeps failing…
adding parser failed: open /usr/share/collectd/types.db: no such file or directory

This is my Telegraf config file right now.
interval = “10s”
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = “0s”
flush_interval = “10s”
flush_jitter = “0s”
precision = “”
hostname = “”
omit_hostname = false

service_address = “udp://:25826”
data_format = “collectd”
collectd_auth_file = “/etc/collectd/collectd.auth”
collectd_security_level = “encrypt”
collectd_typesdb = [“/usr/share/collectd/types.db”]
collectd_parse_multivalue = “split”

bucket = “collectd”

urls = [“http://IP:8086”]
token = “Token Key”
organization = “Org ID”
bucket = “collectd”

bucket = [“collectd”]

Where is the types.db file suppose to be copied to the Influxdb or telegraf docker?

The types.db file is from collectd. Here is an example in their GitHub repo. From that same blog author you linked to, they have another article that explains downloading that file and moving it into the right place.

Yep but the github example was failing as it was missing “stations”

So I got the copy directly from my openwrt device and got it downloaded to my telegraf setup.