#
# Config file for collectd(1).
# Please read collectd.conf(5) for a list of options.
# http://collectd.org/
#

Hostname    "{{ inventory_hostname }}"
FQDNLookup   true
#BaseDir     "/usr/var/lib/collectd"
#PIDFile     "/usr/var/run/collectd.pid"
#PluginDir   "/usr/lib/collectd"
#Interval     10
#ReadThreads  5

# This is the default but it needs to be defined so we can add more DB files later.
TypesDB     "/usr/share/collectd/types.db"

LoadPlugin syslog

<Plugin syslog>
	LogLevel err
</Plugin>

LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin exec
LoadPlugin interface
LoadPlugin load
LoadPlugin memory
LoadPlugin processes
LoadPlugin swap
LoadPlugin tail
LoadPlugin users
LoadPlugin vmem

<Plugin disk>
    Disk "/^[hs]d[a-f]?$/"
    Disk "/^xvd[a-f]?$/"
    Disk "/dev/xvdb1"
    IgnoreSelected false
</Plugin>

<Plugin "interface">
  Interface "/^veth.*"
  Interface "/^vnet.*"
  IgnoreSelected true
</Plugin>

<Plugin "df">
  MountPoint "^/.*/.snapshot/"
  MountPoint "^/run/containers/storage/overlay-containers/.*"
  MountPoint "^/tmp/iso/mount/.*"
  MountPoint "^/var/lib/containers/.*"
  MountPoint "^/var/lib/docker/.*"
  MountPoint "^/var/lib/origin.*"
  FSType "shm"
  FSType "tmpfs"
  FSType "overlay"
  IgnoreSelected true
</Plugin>


{% if ansible_distribution_major_version|default(0)|int == 6 and ansible_distribution == "RedHat" %}
<Plugin hddtemp>
	TranslateDevicename false

</Plugin>

{% endif %}
Include "/etc/collectd.d"
