Telegraf is an easy to set up and configure monitoring client for a variety of operating systems (Windows, Macos, Linux, Red Hat and CentOS) that has a Graphite output plugin.
Linux Systems
> wget https://dl.influxdata.com/telegraf/releases/telegraf_1.21.2-1_amd64.deb
> sudo dpkg -i telegraf_1.21.2-1_amd64.deb
Macos
Procstat Plugin - System Application Monitoring
In addition to sending system metrics, you can also use telegraf to send metrics from local processes using the Procstat input plugin. Processes can be selected using several methods (pidfile, exe, pattern, user, etc.), as seen in the Procstat docs. In the below example, we are using the ‘pattern’ method which can be used for most Linux and Macos systems. (For Windows, we recommend using the Performance Counters plugin which you can read more about in the win_perf_counters docs).
[[inputs.procstat]]
pattern = 'Docker'
[[inputs.procstat]]
pattern = 'mysqld'
[[inputs.procstat]]
pattern = 'Terminal'
[[inputs.procstat]]
pattern = 'Chrome'
Windows via Powershell
> 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'
> ./telegraf.exe --output-filter graphite config > telegraf.conf
> servers = ["carbon.hostedgraphite.com:2003"]
> prefix = "YOUR-API-KEY.telegraf"
> ./telegraf.exe -service install -config 'C:\Program Files\telegraf\telegraf.conf'
> net start telegraf
6. Metrics will now appear in your Hosted Graphite account under the ‘telegraf’ prefix.