Simple installation/configuration of collectd to send metrics/data to a statsd endpoint for visualization.
Background
In many cases, it is useful to collect system metrics to performance baseline the system on which your software is running. With it’s multitude of plugins (and ability to extend via writing new plugins), collectd is a great daemon to configure and run on your instance, and through the write_graphite plugin can be configured to send its data to a Graphite or statsd endpoint.
Installation and Configuration
The following steps were performed on an Ubuntu 16.04 instance.
Use the native package management system to install the collectd daemon:
Once the package is installed, edit the configuration file to enable and configure the Graphite/statsd connectivity:
Once the configuration has been set, start or restart the collectd service (if already running):
If you suspect errors/issues with the configuration or service (i.e. if data is not showing up at your
graphite/statsd endpoint for visualization), you can investigate the instance syslog
which contains
any errors that might occur with the collectd service/configuration: