-
Notifications
You must be signed in to change notification settings - Fork 5.8k
inputs.statsd: Error in plugin: read udp [::]:8125: use of closed network connection #9867
Copy link
Copy link
Closed
Labels
Description
Relevant telegraf.conf:
[[inputs.statsd]]Steps to reproduce:
having placed logstash.conf in your working directory, execute:
docker run -ti -v $(pwd)/telegraf.conf:/etc/telegraf/telegraf.conf telegraf:1.18.3 --testthe run succeeds with the following output:
2021-10-06T13:27:24Z I! Starting Telegraf 1.18.3
2021-10-06T13:27:24Z I! Using config file: /etc/telegraf/telegraf.conf
2021-10-06T13:27:24Z I! [inputs.statsd] UDP listening on "[::]:8125"
2021-10-06T13:27:24Z I! [inputs.statsd] Started the statsd service on ":8125"
2021-10-06T13:27:24Z I! [inputs.statsd] Stopping the statsd service
2021-10-06T13:27:24Z I! [inputs.statsd] Stopped listener service on ":8125"
using any later version, doesn't:
docker run -ti -v $(pwd)/telegraf.conf:/etc/telegraf/telegraf.conf telegraf:1.19.3 --test
docker run -ti -v $(pwd)/telegraf.conf:/etc/telegraf/telegraf.conf telegraf:1.20.0 --testthe run fails with the following output:
2021-10-06T13:25:24Z I! Starting Telegraf 1.19.3
2021-10-06T13:25:24Z I! Using config file: /etc/telegraf/telegraf.conf
2021-10-06T13:25:24Z I! [inputs.statsd] UDP listening on "[::]:8125"
2021-10-06T13:25:24Z I! [inputs.statsd] Started the statsd service on ":8125"
2021-10-06T13:25:24Z I! [inputs.statsd] Stopping the statsd service
2021-10-06T13:25:24Z E! [inputs.statsd] Error in plugin: read udp [::]:8125: use of closed network connection
2021-10-06T13:25:24Z I! [inputs.statsd] Stopped listener service on ":8125"
2021-10-06T13:25:24Z E! [telegraf] Error running agent: input plugins recorded 1 errors
Expected behavior:
test run should exit successfully without any error
Actual behavior:
test run fails with error
Reactions are currently unavailable