Failed to Install telegraf on Windows 10

#1

I have a small Windows 10 64 bit machine already running InfluxDB and Grafana and I want to Install telegraf to collect local metrics.

Download is: telegraf-1.9.5_windows_amd64.zip

However, every time I use Powershell as Administrator to install it, I get:

2019/03/03 11:30:51 E! Failed to install Telegraf Data Collector Service: InstallAsEventCreate() failed: SYSTEM\CurrentControlSet\Services\EventLog\Application\telegraf registry key already exists

I have searched the Registry for “telegraf” and am 100% sure it’s clear.

Any ideas, please!

#2

Did you try running the telegraf.exe --service uninstall command before trying to install again?

In case you haven’t seen it, check out the following InfluxData blog: Running the TICK Stack on Windows.

Steve