How To Upgrade Telegraf Agent on Windows

Hi,

my question is very simple. I think, it’s enough to stop the service replace the exe since the telegraf service looks for ProgramFiles\telegraf\telegraf.exe then start the service. Still, I wanted to ask if I should go for service uninstall and install.

Regards,

To me you can just replace the executable, in the end the service just runs the given executable.
As long as the path, name and arguments of the Telegraf executable remain valid you won’t have any problem.
(also if you run telegraf with a dedicated user you won’t have to reconfigure it)

I updated telegraf in this way a pair of times and never had problems.

2 Likes

That’s what I thought exactly, thanks for the confirmation. @Giovanni_Luisotto