#
# Collectd configuration (fmn.core.collectd)
#

Hostname    "notifications{{ env_suffix }}.fedoraproject.org"
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 logfile

<Plugin LogFile>
    LogLevel "info"
    File STDOUT
    Timestamp true
</Plugin>

# Send data to log01
LoadPlugin network
<Plugin "network">
    Server "log01"
</Plugin>

# FMN

TypesDB "/opt/app-root/src/config/collectd-types.db"

<LoadPlugin python>
  Globals true
</LoadPlugin>

<Plugin python>
  LogTraces true
  Interactive false
  ModulePath "/opt/app-root/src"
  Import "fmn.core.collectd"

  <Module "fmn.core.collectd">
    ## Interval between two collections. The collectd default of 10 seconds is
    ## way too short, this plugin sets the default to 1h (3600s). Adjust
    ## depending on how frequently the cache is rebuilt. Remember that if you
    ## change the interval, you'll have to recreate your RRD files.
    # Interval 3600
  </Module>
</Plugin>
# EOF -- please keep this as the config parser does not like it when there's no
# final \n, and Openshift strips it in configmap.yml
