Introduction
In this document we will describe a method of setting up periodic niping monitoring within an SAP infrastructure driven by the Telegraf monitoring agent, and reported via the Azure Mon...
I was recently involved in a project where we needed iostat metrics to be surfaced within the Azure portal, and also having the ability to create alerts based on this data. Here are my instructions on doing this:
First, I created a shell script that runs iostat and collects the data in the proper format. Here is my script which I put in /usr/local/bin/iostat_sh.sh:
Remember that the two number parameters for iostat are the interval and the count. In my case I used 5 seconds for the interval and 1 for the count – you may want to adjust the interval that you are measuring over. Then I did chmod a+x /usr/local/bin/iostat_sh.sh to make the shell script executable.
Next I modified my /etc/telegraf/telegraf.conf to have this input section: