BaseDir "/opt/collectd"
LoadPlugin syslog
LoadPlugin cpu
LoadPlugin interface
LoadPlugin load
LoadPlugin memory
LoadPlugin disk
LoadPlugin df
{% if (collectd_librato_email|length and collectd_librato_api_token|length) %}
Globals true
ModulePath "/opt/collectd-librato-{{ collectd_librato_version }}/lib"
Import "collectd-librato"
Email "{{ collectd_librato_email }}"
APIToken "{{ collectd_librato_api_token }}"
TypesDB "/opt/collectd/share/collectd/types.db"
{% else %}
LoadPlugin rrdtool
DataDir "/opt/collectd/var/lib/collectd/rrd"
{% endif %}