I guess this is hard to reproduce, because the unix socket is rarely used as telegraf cannot talk to it (thus it instead connects via UDP to the chrony deamon).
The unix socket is however needed to access the serverstats metrics. Most of the other ones can be reached using the udp socket.
Relevant telegraf.conf
Logs from Telegraf
System info
1.13 - 78cbf533d2
Docker
No response
Steps to reproduce
unix:///var/run/chrony/chronyd.sock
Expected behavior
The chrony plugin should work
Actual behavior
The plugin hangs when using the unix socket when:
The reasons are two fold:
unixgram
) unix socket and not stream (unix
) ones.Here is a working example by facebook
Additional info
I guess this is hard to reproduce, because the unix socket is rarely used as telegraf cannot talk to it (thus it instead connects via UDP to the chrony deamon).
The unix socket is however needed to access the
serverstats
metrics. Most of the other ones can be reached using the udp socket.