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.
https://blog.christophersmart.com/2019/09/09/monitoring-openwrt-with-collectd-influxdb-and-grafana/

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.
agent]
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

[[inputs.socket_listener]]
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”

[inputs.socket_listener.tags]
bucket = “collectd”

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

[outputs.influxdb_v2.tagpass]
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.