Setup Telegraf on Windows
Updated: May 6
In this post, steps to set up Telegraf on windows are detailed.
To visit more such posts, follow: #RealTimeMonitoring #PerformanceTesting
Telegraf is a collecting agent which periodically queries data source, for example, MySQL, Perfmon, etc and sends collected data to a destination, for example to InfluxDB time-series database. We should have an output source already in place which is InfluxDB in this post. Let's set up telegraf on windows.
PREVIOUS MILESTONE STEPS
Step 1 - Download Telegraf
Step 2 - Extract to Program Files
Step 3 - Run Telegraf as Service
Go to download page
Click on version under telegraf
In a newly opened window, scroll to window version.
Paste URL in the browser
Zip folder would be downloaded
Open command prompt as admin
Create a directory under ProgramFiles
Extract contents of the downloaded folder from the previous step to the Telegraf directory
Open a command prompt as admin.
Go to "C:\Program Files\Telegraf"
Give the command to install telegraf service
Give the command to run telegraf service
net start telegraf
As a result, you should see below in window services(Win+ R -->services.msc)
In case you face any issues in starting the service, go Event Viewer --> Window Logs-->Applications and check for error related to telegraf