Skip to content
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

InfluxDB UDP output plugin not splitting large measurements #5438

Closed
oplehto opened this issue Feb 15, 2019 · 0 comments
Closed

InfluxDB UDP output plugin not splitting large measurements #5438

oplehto opened this issue Feb 15, 2019 · 0 comments
Assignees
Labels
bug unexpected problem or unintended behavior
Milestone

Comments

@oplehto
Copy link
Contributor

oplehto commented Feb 15, 2019

Telegraf's UDP output is not splitting outgoing measurement lines based on the udp_payload. It seems like the this block is never executed as serializer alway exists: https://github.com/influxdata/telegraf/blob/master/plugins/outputs/influxdb/udp.go#L46

Relevant telegraf.conf:

[[outputs.influxdb]]
  urls = ['udp://metrics-udp:22001/']
  database = "tg_udp"
  precision = "s"
  timeout = "5s"
  user_agent = "telegraf"
  udp_payload = 1400

System info:

Tested on Telegraf 1.9.4 but issue seems to be still in HEAD

Steps to reproduce:

  1. Set a udp_payload value in the [[outputs.influxdb]] plugin which is lower the size of some measurement lines.
  2. Check the UDP datagram sizes with tcpdump.

Expected behavior:

The datagrams should be split to be under the udp_payload size.

Actual behavior:

The udp_payload parameter is disregarded and no split is performed. Measurements larger than udp_payload size are sent as single datagrams. For very large measurements a "message too long" error is produced.

oplehto added a commit to oplehto/telegraf that referenced this issue Feb 15, 2019
oplehto added a commit to oplehto/telegraf that referenced this issue Feb 15, 2019
@danielnelson danielnelson added the bug unexpected problem or unintended behavior label Feb 15, 2019
@danielnelson danielnelson self-assigned this Feb 15, 2019
@danielnelson danielnelson added this to the 1.10.0 milestone Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants