-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems using UDP influxdb output #2862
Comments
I am seeing something which may be related with the socket writer plugin with UDP: Unrelated metrics are getting randomly dropped when there are measurements active which require a split into multiple UDP packets. The amount of drops seems to correlate with the amount of splits required. I haven't had time to look in any deeper but I suspect that this loop breaks prematurely:
|
The splitter was updated before the v1.3.0 release here: #2795. The splits actually take place in the influxdb Split function -- https://github.com/influxdata/telegraf/blob/master/metric/metric.go#L220 |
I think maybe we shouldn't determine the buffer length until after splitting https://github.com/influxdata/telegraf/blob/master/plugins/outputs/influxdb/influxdb.go#L189 |
I see what happened, it was refactored slightly on #2799 since we merged #2795! @danielnelson, didn't realize we actually merged that...I think we built with just #2795 but will confirm in the morning. |
I'm pretty sure this is it, working on PR now. |
The invalid points was fixed in 1.3.1, but there was still an edge case where long point are not split correctly and they would be dropped. This is fixed in 1.3.2. |
Looks like telegraf is splitting a udp message and this means its not getter parsed properly by influxdb.
This has started happening since update to telegraf 1.3
Relevant telegraf.conf:
System info:
Telegraf 1.3 docker image
Influxdb 1.2 docker image
Log message
The text was updated successfully, but these errors were encountered: