Code

collectd.conf: Added new config options and plugins.
[pkg-collectd.git] / debian / collectd.conf
index 8130154c96651fa6e366875538c500e26521bdac..18925d0ab4a865db147b6943e078a05d6cd45c28 100644 (file)
@@ -18,6 +18,13 @@ FQDNLookup true
 #PluginDir "/usr/lib/collectd"
 #TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db"
 
+#----------------------------------------------------------------------------#
+# When enabled, plugins are loaded automatically with the default options    #
+# when an appropriate <Plugin ...> block is encountered.                     #
+# Disabled by default.                                                       #
+#----------------------------------------------------------------------------#
+#AutoLoadPlugin false
+
 #----------------------------------------------------------------------------#
 # Interval at which to query values. This may be overwritten on a per-plugin #
 # base by using the 'Interval' option of the LoadPlugin block:               #
@@ -29,6 +36,12 @@ FQDNLookup true
 
 #Timeout 2
 #ReadThreads 5
+#WriteThreads 5
+
+# Limit the size of the write queue. Default is no limit. Setting up a limit
+# is recommended for servers handling a high volume of traffic.
+#WriteQueueLimitHigh 1000000
+#WriteQueueLimitLow   800000
 
 ##############################################################################
 # Logging                                                                    #
@@ -65,6 +78,7 @@ LoadPlugin syslog
 #LoadPlugin ascent
 LoadPlugin battery
 #LoadPlugin bind
+#LoadPlugin cgroups
 #LoadPlugin conntrack
 #LoadPlugin contextswitch
 LoadPlugin cpu
@@ -93,12 +107,14 @@ LoadPlugin irq
 #LoadPlugin java
 #LoadPlugin libvirt
 LoadPlugin load
+#LoadPlugin lvm
 #LoadPlugin madwifi
 #LoadPlugin mbmon
 #LoadPlugin md
 #LoadPlugin memcachec
 #LoadPlugin memcached
 LoadPlugin memory
+#LoadPlugin modbus
 #LoadPlugin multimeter
 #LoadPlugin mysql
 #LoadPlugin netlink
@@ -129,9 +145,11 @@ LoadPlugin rrdtool
 #LoadPlugin sensors
 #LoadPlugin serial
 #LoadPlugin snmp
+#LoadPlugin statsd
 LoadPlugin swap
 #LoadPlugin table
 #LoadPlugin tail
+#LoadPlugin tail_csv
 #LoadPlugin tcpconns
 #LoadPlugin teamspeak2
 #LoadPlugin ted
@@ -148,6 +166,7 @@ LoadPlugin users
 #LoadPlugin write_graphite
 #LoadPlugin write_http
 #LoadPlugin write_mongodb
+#LoadPlugin write_riemann
 
 ##############################################################################
 # Plugin configuration                                                       #
@@ -160,10 +179,13 @@ LoadPlugin users
 #      <Aggregation>
 #              #Host "unspecified"
 #              Plugin "cpu"
-#              #PluginInstance "unspecified"
+#              PluginInstance "/[0,2,4,6,8]$/"
 #              Type "cpu"
 #              #TypeInstance "unspecified"
 #
+#              SetPlugin "cpu"
+#              SetPluginInstance "even-%{aggregation}"
+#
 #              GroupBy "Host"
 #              GroupBy "TypeInstance"
 #
@@ -211,6 +233,7 @@ LoadPlugin users
 #<Plugin apcups>
 #      Host "localhost"
 #      Port "3551"
+#      ReportSeconds true
 #</Plugin>
 
 #<Plugin ascent>
@@ -243,6 +266,11 @@ LoadPlugin users
 #      </View>
 #</Plugin>
 
+#<Plugin "cgroups">
+#      CGroup "libvirt"
+#      IgnoreSelected false
+#</Plugin>
+
 #<Plugin csv>
 #      DataDir "/var/lib/collectd/csv"
 #      StoreRates false
@@ -339,19 +367,36 @@ LoadPlugin users
 #              SelectDB "custdb0"
 #              Query "num_of_customers"
 #              Query "..."
+#              Host "..."
 #      </Database>
 #</Plugin>
 
-#<Plugin df>
+<Plugin df>
 #      Device "/dev/sda1"
 #      Device "192.168.0.2:/mnt/nfs"
 #      MountPoint "/home"
 #      FSType "ext3"
-#      IgnoreSelected false
+
+       # ignore rootfs; else, the root file-system would appear twice, causing
+       # one of the updates to fail and spam the log
+       FSType rootfs
+       # ignore the usual virtual / temporary file-systems
+       FSType sysfs
+       FSType proc
+       FSType devtmpfs
+       FSType devpts
+       FSType tmpfs
+       FSType fusectl
+       FSType cgroup
+       IgnoreSelected true
+
 #      ReportByDevice false
 #      ReportReserved false
 #      ReportInodes false
-#</Plugin>
+
+#      ValuesAbsolute true
+#      ValuesPercentage false
+</Plugin>
 
 #<Plugin disk>
 #      Disk "hda"
@@ -508,6 +553,26 @@ LoadPlugin users
 #      </Instance>
 #</Plugin>
 
+#<Plugin modbus>
+#      <Data "data_name">
+#              RegisterBase 1234
+#              RegisterType float
+#              Type gauge
+#              Instance "..."
+#      </Data>
+#
+#      <Host "name">
+#              Address "addr"
+#              Port "1234"
+#              Interval 60
+#
+#              <Slave 1>
+#                      Instance "foobar" # optional
+#                      Collect "data_name"
+#              </Slave>
+#      </Host>
+#</Plugin>
+
 #<Plugin mysql>
 #      <Database db_name>
 #              Host "database.serv.er"
@@ -755,6 +820,7 @@ LoadPlugin users
 #      DaemonAddress "unix:/var/run/rrdcached.sock"
 #      DataDir "/var/lib/rrdcached/db/collectd"
 #      CreateFiles true
+#      CreateFilesAsync false
 #      CollectStatistics true
 #
 # The following settings are rather advanced
@@ -771,6 +837,7 @@ LoadPlugin users
 #      CacheTimeout 120
 #      CacheFlush 900
 #      WritesPerSecond 30
+#      CreateFilesAsync false
 #      RandomTimeout 0
 #
 # The following settings are rather advanced
@@ -837,6 +904,16 @@ LoadPlugin users
 #      </Host>
 #</Plugin>
 
+#<Plugin statsd>
+#      Host "::"
+#      Port "8125"
+#      DeleteCounters false
+#      DeleteTimers   false
+#      DeleteGauges   false
+#      DeleteSets     false
+#      TimerPercentile 90.0
+#</Plugin>
+
 #<Plugin swap>
 #      ReportByDevice false
 #      ReportBytes true
@@ -880,6 +957,33 @@ LoadPlugin users
 #      </File>
 #</Plugin>
 
+#<Plugin "tail_csv">
+#      <Metric "dropped">
+#              Type "percent"
+#              Instance "dropped"
+#              ValueFrom 1
+#      </Metric>
+#      <Metric "mbps">
+#              Type "bytes"
+#              Instance "wire-realtime"
+#              ValueFrom 2
+#      </Metric>
+#      <Metric "alerts">
+#              Type "alerts_per_second"
+#              ValueFrom 3
+#      </Metric>
+#      <Metric "kpps">
+#              Type "kpackets_wire_per_sec.realtime"
+#              ValueFrom 4
+#      </Metric>
+#      <File "/var/log/snort/snort.stats">
+#              Instance "snort-eth0"
+#              Interval 600
+#              Collect "dropped" "mbps" "alerts" "kpps"
+#              TimeFrom 0
+#      </File>
+#</Plugin>
+
 #<Plugin tcpconns>
 #      ListeningPorts false
 #      LocalPort "25"
@@ -923,15 +1027,23 @@ LoadPlugin users
 #      <Instance>
 #              CollectCache true
 #              CollectBackend true
+#              CollectBan false           # Varnish 3 only
 #              CollectConnections true
+#              CollectDirectorDNS false   # Varnish 3 only
 #              CollectSHM true
 #              CollectESI false
 #              CollectFetch false
 #              CollectHCB false
-#              CollectSMA false
+#              CollectObjects false
+#              CollectPurge false         # Varnish 2 only
+#              CollectSession false
+#              CollectSMA false           # Varnish 2 only
 #              CollectSMS false
-#              CollectSM false
+#              CollectSM false            # Varnish 2 only
+#              CollectStruct false
 #              CollectTotals false
+#              CollectUptime false
+#              CollectdVCL false
 #              CollectWorkers false
 #      </Instance>
 #
@@ -945,15 +1057,17 @@ LoadPlugin users
 #</Plugin>
 
 #<Plugin write_graphite>
-#      <Carbon>
+#      <Node "example">
 #              Host "localhost"
 #              Port "2003"
+#              Protocol "udp"
+#              LogSendErrors true
 #              Prefix "collectd"
 #              Postfix "collectd"
-#              StoreRates false
+#              StoreRates true
 #              AlwaysAppendDS false
 #              EscapeCharacter "_"
-#      </Carbon>
+#      </Node>
 #</Plugin>
 
 #<Plugin write_http>
@@ -977,6 +1091,18 @@ LoadPlugin users
 #      <Node>
 #</Plugin>
 
+#<Plugin write_riemann>
+#      <Node "example">
+#              Host "localhost"
+#              Port 5555
+#              Protocol UDP
+#              StoreRates true
+#              AlwaysAppendDS false
+#              TTLFactor 2.0
+#      </Node>
+#      Tag "foobar"
+#</Plugin>
+
 Include "/etc/collectd/filters.conf"
 Include "/etc/collectd/thresholds.conf"