Using Telegraf

Telegraf is easy to set up and configure monitoring client for windows (and Linux) that has a Graphite output plugin.

installing and configuring Telegraf via Powershell

  1. Download Telegraf using the wget command (an alias for Invoke-Webrequest) and unzip it:
> wget https://dl.influxdata.com/telegraf/releases/telegraf-1.5.2_windows_amd64.zip -O telegraf-1.5.2_windows_amd64.zip
> Expand-Archive .\telegraf-1.5.2_windows_amd64.zip

Note: This is the current version as of March 2018. The link for the most up-to-date version can be found on the Telegraf downloads page.

  

> mkdir 'C:\Program Files\Telegraf'
> mv .\telegraf-1.5.2_windows_amd64\telegraf\*.* 'C:\Program Files\Telegraf'
> cd 'C:\Program Files\Telegraf'

   

  1. Create a new configuration file which includes the Graphite output-filter.
> ./telegraf.exe --output-filter graphite config > telegraf.conf

   

  1. Open the telegraf.conf file using your preferred text editor. Find the section titled[[outputs.graphite]]and change the servers and prefix options:
> servers = ["carbon.hostedgraphite.com:2003"]
> prefix = "YOUR-API-KEY.telegraf"

         

The graphite output section of the telegraf configuration file

The graphite output section of the telegraf configuration file

  1. Install telegraf to your services, and start it up:
> ./telegraf.exe -service install -config 'C:\Program Files\telegraf\telegraf.conf'
> net start telegraf

      

undefined

Registering telegraf as a service

  

Metrics will appear under the ‘telegraf’ prefix.