unixgram support for StatsD plugin service_address
#11,081 opened on May 11, 2022
Repository metrics
- Stars
- (9,892 stars)
- PR merge metrics
- (Avg merge 2d 12h) (136 merged PRs in 30d)
Description
Hello and thanks for Telegraf,
Feature Request
Opening a feature request kicks off a discussion.
Proposal:
Request to add unixgram support for StatsD plugin service_address if it is not already supported, if it is supported then update the docs and tests.
Current behavior:
From reading the docs and tests, I think the StatsD Input Plugin currently supports UDP or TCP over a service_address that is an address and port, the docs and tests do not mention support for:
service_address = "unixgram:///tmp/telegraf.sock"
(the code looks like it might work with a unixgram service_address, sorry I have not tested it yet)
Desired behavior:
Support and update docs for using unixgram service_address with StatsD plugin.
Use case:
I have a use case that could update the StatsD Input Plugin very frequently and would prefer to use a Unix domain socket to avoid the extra work of sending data through the loopback networking interface. Using a Unix domain socket also allows for greater access control by way of using Unix file permissions to control access to communicate with it.
Ideally it would be possible for the StatsD Input Plugin to listen on both an Internet socket AND a Unix domain socket, as this will make it easier to move from using one to the other. I am only interested in the UDP protocol.
Thanks for any thoughts on this.