Enabling InfluxDB UDP

I have reviewed the blogs and confirmed Influx is reading my config.toml file containing just:

[[udp]]

Controls the listeners for InfluxDB line protocol data via UDP.

[[udp]]
enabled = true
bind-address = “:8088”
database = “Test”

retention-policy = “”

These next lines control how batching works. You should have this enabled

otherwise you could get dropped metrics or poor performance. Batching

will buffer points in memory if you have many coming in.

#batch-size = 1000 # will flush if this many points get buffered
#batch-pending = 5 # number of batches that may be pending in memory
#batch-timeout = “1s” # will flush at least this often even if we haven’t hit buffer limit
#read-buffer = 0 # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.

set the expected UDP payload size; lower values tend to yield better performance, default is max UDP size 65536

udp-payload-size = 65536

I’m using the basic ESP32 UDP UDP example, but still no luck. It sends

wifi_status,device=ESP32,SSID=Dev_2 rssi=-77i

The data base is there and it works with the stock TCP client example.

I see The TCP service start…
2023-05-08T21:09:37.007090Z info Listening {“log_id”: “0hgJ0d8l000”, “service”: “tcp-listener”, “transport”: “http”, “addr”: “:8086”, “port”: 8086}

but no acknowledgement of any UDP service.

Can anyone see what in missing?

K/r

I guess you need to set host_network: true in the add-on config.yaml.

I made an add-on that acts as a relay and forwards UDP point writes to InfluxDB HTTP API. This way you don’t need to modify the existing InfluxDB add-on