# Config file for collectd(1).
#
# Some plugins need additional configuration and are disabled by default.
# Please read collectd.conf(5) for details.
#
# You should also read /usr/share/doc/collectd-core/README.Debian.plugins
# before enabling any more plugins.

Hostname "<%= @fqdn_metrics %>"
FQDNLookup false
#BaseDir "/var/lib/collectd"
#PluginDir "/usr/lib/collectd"
#TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db"
#Interval 10
#Timeout 2
#ReadThreads 5

Include "/etc/collectd/types.conf"
Include "/etc/collectd/conf.d/*.conf"

# Config file for collectd(1).
#
# Some plugins need additional configuration and are disabled by default.
# Please read collectd.conf(5) for details.
#
# You should also read /usr/share/doc/collectd-core/README.Debian.plugins
# before enabling any more plugins.

<% if scope.lookupvar('::aws_migration') -%>
Hostname "<%= scope.lookupvar('::govuk_node_class') %>-<%= @fqdn %>"
<% else -%>
Hostname "<%= @fqdn_metrics %>"
<% end -%>
FQDNLookup false
#BaseDir "/var/lib/collectd"
#PluginDir "/usr/lib/collectd"
#TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db"
#Interval 10
#Timeout 2
#ReadThreads 5

Include "/etc/collectd/types.conf"
Include "/etc/collectd/conf.d/*.conf"

Change the collectd naming scheme when on AWS
Change the collectd naming scheme when on AWS

  We need to change the way we name machines on collectd when
on AWS since the machines have different hostnames now.
