/ansible-collectd

An Ansible role for installing Collectd.

Apache License 2.0Apache-2.0

ansible-collectd

An Ansible role for installing Collectd.

Role Variables

  • collectd_version - Collectd version
  • collectd_install_recommends - A flag passed to the install_recommends option of the Ansible apt module (default: True).
  • collectd_interval - Collectd metrics collection interval (default: 10)
  • collectd_load_plugins - Collectd plugins to load (see defaults)

Example Playbook

By default, this role does not load any Collectd plugins. Most likely, you will want some plugins enabled in order to collect metrics.

In order to use any Collectd plugins with this role, simply list the plugins you want enabled as a list via collectd_load_plugins. Then, generate templates for each plugin configuration file and place the rendered template in /etc/collectd/collectd.conf.d.

See the azavea.graphite examples directory for a more complete example.