[[inputs.chrony]]
# ## Server address of chronyd with address scheme
# ## If empty or not set, the plugin will mimic the behavior of chronyc and
# ## check "unix:///run/chrony/chronyd.sock", "udp://127.0.0.1:323"
# ## and "udp://[::1]:323".
# # server = ""
server="unix:///run/chrony/chronyd.sock"
#
# ## Timeout for establishing the connection
# # timeout = "5s"
#
# ## Try to resolve received addresses to host-names via DNS lookups
# ## Disabled by default to avoid DNS queries especially for slow DNS servers.
# # dns_lookup = false
#
# ## Metrics to query named according to chronyc commands
# ## Available settings are:
# ## activity -- number of peers online or offline
# ## tracking -- information about system's clock performance
# ## serverstats -- chronyd server statistics
# ## sources -- extended information about peers
# ## sourcestats -- statistics on peers
# # metrics = ["tracking"]
metrics=["activity","tracking","serverstats","sources","sourcestats"]
#
# ## Socket group & permissions
# ## If the user requests collecting metrics via unix socket, then it is created
# ## with the following group and permissions.
socket_group = "_chrony"
socket_perms = "0660"
Logs from Telegraf
Aug 21 02:32:42 gpsntp telegraf[24149]: 2024-08-20T16:32:42Z I! Loading config: /etc/telegraf/telegraf.conf
Aug 21 02:32:42 gpsntp telegraf[24149]: 2024-08-20T16:32:42Z I! Starting Telegraf 1.31.3 brought to you by InfluxData the makers of InfluxDB
Aug 21 02:32:42 gpsntp telegraf[24149]: 2024-08-20T16:32:42Z I! Available plugins: 234 inputs, 9 aggregators, 32 processors, 26 parsers, 60 outputs, 6 secret-stores
Aug 21 02:32:42 gpsntp telegraf[24149]: 2024-08-20T16:32:42Z I! Loaded inputs: chrony cpu disk diskio kernel mem processes swap system
Aug 21 02:32:42 gpsntp telegraf[24149]: 2024-08-20T16:32:42Z I! Loaded aggregators:
Aug 21 02:32:42 gpsntp telegraf[24149]: 2024-08-20T16:32:42Z I! Loaded processors:
Aug 21 02:32:42 gpsntp telegraf[24149]: 2024-08-20T16:32:42Z I! Loaded secretstores:
Aug 21 02:32:42 gpsntp telegraf[24149]: 2024-08-20T16:32:42Z I! Loaded outputs: influxdb_v2
Aug 21 02:32:42 gpsntp telegraf[24149]: 2024-08-20T16:32:42Z I! Tags enabled: host=gpsntp
Aug 21 02:32:42 gpsntp telegraf[24149]: 2024-08-20T16:32:42Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"gpsntp", Flush Interval:10s
Aug 21 02:32:50 gpsntp telegraf[24149]: 2024-08-20T16:32:50Z E! [inputs.chrony] Error in plugin: querying server statistics failed: got status UNAUTH (2)
System info
Telegraf 1.31.3 (git: HEAD@ecf94b12)
Docker
No response
Steps to reproduce
use unix://socket/path in your config as demonstrated by documentation
Expected behavior
Works
Actual behavior
Doesn't work
Aug 21 02:32:50 gpsntp telegraf[24149]: 2024-08-20T16:32:50Z E! [inputs.chrony] Error in plugin: querying server statistics failed: got status UNAUTH (2)
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.31.3 (git: HEAD@ecf94b12)
Docker
No response
Steps to reproduce
use unix://socket/path in your config as demonstrated by documentation
Expected behavior
Works
Actual behavior
Doesn't work
Additional info
Documentation should say unixgram:// not unix://