Telegraf precision not working in rocky linux

i have recently migrated to rocky linux in many of my linux servers and telegraf seems to be having issues.
to start with the precision parameter is not working:
Error running agent: Error loading config file /etc/telegraf/telegraf.conf: error parsing [agent]: line 69: (config.AgentConfig.Precision) time: invalid duration “ns”

the value here is ns but i have tried all the options and nothing works.
whereas when i comment this parameter in telegraf.conf, telegraf runs without any error.

can someone please help here. I am not able to understand what exactly is going on here.

I think this is due to a recent bugfix in Telegraf.
The duration ns is invalid, because it is only a unit without a value.
This configuration error was simply ignored by telegraf for a long time and was fixed now.
The correct setting should be 1ns instead of ns

1 Like