influxdata/telegraf

unixgram support for StatsD plugin service_address

Open

#11.081 aperta il 11 mag 2022

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Go (4161 fork)batch import
area/statsdfeature requesthelp wantedsize/m

Metriche repository

Star
 (9892 star)
Metriche merge PR
 (Merge medio 2g 12h) (136 PR mergiate in 30 g)

Descrizione

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.

Guida contributor