Skip to content

inputs.statsd: Error in plugin: read udp [::]:8125: use of closed network connection #9867

@passing

Description

@passing

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 --test

the 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 --test

the 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/statsdbugunexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions