Anodot provides support for server monitoring through a native integration with collectd. This capability makes it trivial to get system metrics like CPU, Load, Disk and Network I/O for all your hosts into Anodot.
Collectd is one of the most popular and widely deployed OSS system monitoring agents. It is used for everything from basic statistics gathering, to performance analysis and capacity planning. Written in C, it is fast, lightweight, and included by default in most Linux distributions. With over 90 plugins, it is also quite flexible.
Follow these instructions to setup and use collectd with Anodot.
To download and install collectd:
- If your system is running Ubuntu, Debian or other Debian-based Linux distributions, run the following command:
"sudo apt-get install collectd"
- If your system is running RedHat Linux, CentOS or other RPM-based Linux distributions, run the following command:
"sudo yum install collectd"
To get your API token:
- At the top right of an Anodot page, click to open your account information.
- At the end of the data line below Token, click Copy to copy your token to the clipboard.
To configure sending metrics to Anodot:
- Create a file named conf under your plugin directory conf.d and add the following:
<URL "http://api.anodot.com/api/v1/metrics?token=<YOUR API TOKEN>&protocol=collectd">
where <YOUR API TOKEN> is your Anodot token
- Restart collectd:
sudo /etc/init.d/collectd restart