|
|
|
@ -2,6 +2,7 @@ Interval {{ collectd_interval }}
|
|
|
|
|
Timeout 2
|
|
|
|
|
|
|
|
|
|
LoadPlugin syslog
|
|
|
|
|
|
|
|
|
|
<Plugin syslog>
|
|
|
|
|
LogLevel warning
|
|
|
|
|
</Plugin>
|
|
|
|
@ -23,25 +24,46 @@ LoadPlugin syslog
|
|
|
|
|
{% endif %}
|
|
|
|
|
</Plugin>
|
|
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_cpu is sameas true %}
|
|
|
|
|
LoadPlugin cpu
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_df is sameas true %}
|
|
|
|
|
LoadPlugin df
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_disk is sameas true %}
|
|
|
|
|
LoadPlugin disk
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_interface is sameas true %}
|
|
|
|
|
LoadPlugin interface
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_load is sameas true %}
|
|
|
|
|
LoadPlugin load
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_memory is sameas true %}
|
|
|
|
|
LoadPlugin memory
|
|
|
|
|
{% endif %}
|
|
|
|
|
LoadPlugin network
|
|
|
|
|
{% if collectd_plugin_pf is sameas true %}
|
|
|
|
|
LoadPlugin pf
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_processes is sameas true %}
|
|
|
|
|
LoadPlugin processes
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_swap is sameas true %}
|
|
|
|
|
LoadPlugin swap
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_tcpconns is sameas true %}
|
|
|
|
|
LoadPlugin tcpconns
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_uptime is sameas true %}
|
|
|
|
|
LoadPlugin uptime
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_users is sameas true %}
|
|
|
|
|
LoadPlugin users
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_pf is sameas true %}
|
|
|
|
|
LoadPlugin pf
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if collectd_plugin_df is sameas true %}
|
|
|
|
|
LoadPlugin df
|
|
|
|
|
<Plugin df>
|
|
|
|
|
# expose host's mounts into container using -v /:/host:ro (location inside container does not matter much)
|
|
|
|
|
# ignore rootfs; else, the root file-system would appear twice, causing
|
|
|
|
@ -73,7 +95,6 @@ LoadPlugin df
|
|
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_disk is sameas true %}
|
|
|
|
|
LoadPlugin disk
|
|
|
|
|
<Plugin "disk">
|
|
|
|
|
#Disk "/^[hsv]d[a-z]/"
|
|
|
|
|
IgnoreSelected false
|
|
|
|
@ -81,28 +102,24 @@ LoadPlugin disk
|
|
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_cpu is sameas true %}
|
|
|
|
|
LoadPlugin cpu
|
|
|
|
|
<Plugin cpu>
|
|
|
|
|
ValuesPercentage true
|
|
|
|
|
</Plugin>
|
|
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_memory is sameas true %}
|
|
|
|
|
LoadPlugin memory
|
|
|
|
|
<Plugin memory>
|
|
|
|
|
ValuesPercentage true
|
|
|
|
|
</Plugin>
|
|
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_swap is sameas true %}
|
|
|
|
|
LoadPlugin swap
|
|
|
|
|
<Plugin swap>
|
|
|
|
|
ValuesPercentage true
|
|
|
|
|
</Plugin>
|
|
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_interface is sameas true %}
|
|
|
|
|
LoadPlugin interface
|
|
|
|
|
<Plugin interface>
|
|
|
|
|
Interface "/^lo[0-9]*/"
|
|
|
|
|
Interface "/^veth.*/"
|
|
|
|
@ -113,13 +130,12 @@ LoadPlugin interface
|
|
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if collectd_plugin_tcpconns is sameas true %}
|
|
|
|
|
LoadPlugin tcpconns
|
|
|
|
|
<Plugin "tcpconns">
|
|
|
|
|
AllPortsSummary true
|
|
|
|
|
</Plugin>
|
|
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
LoadPlugin network
|
|
|
|
|
<Plugin "network">
|
|
|
|
|
Server "{{ collectd_server }}" "25826"
|
|
|
|
|
<Server "{{ collectd_server }}" "25826">
|
|
|
|
|
</Server>
|
|
|
|
|
</Plugin>
|
|
|
|
|