# 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. ############################################################################## # Global # #----------------------------------------------------------------------------# # Global settings for the daemon. # ############################################################################## Hostname "localhost" #FQDNLookup true #BaseDir "/var/lib/collectd" #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 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: # # # # Interval 60 # # # #----------------------------------------------------------------------------# # IMPORTANT: changing this value requires a change in whisper schema as well Interval 20 #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 # #----------------------------------------------------------------------------# # Plugins which provide logging functions should be loaded first, so log # # messages generated when loading or configuring other plugins can be # # accessed. # ############################################################################## LoadPlugin logfile #LoadPlugin syslog LogLevel "info" File "/var/log/collectd.log" Timestamp true PrintSeverity false # # LogLevel info # ############################################################################## # LoadPlugin section # #----------------------------------------------------------------------------# # Specify what features to activate. # ############################################################################## LoadPlugin aggregation #LoadPlugin amqp #LoadPlugin apache #LoadPlugin apcups #LoadPlugin ascent #LoadPlugin battery #LoadPlugin bind #LoadPlugin cgroups #LoadPlugin conntrack #LoadPlugin contextswitch LoadPlugin cpu #LoadPlugin cpufreq #LoadPlugin csv #LoadPlugin curl #LoadPlugin curl_json #LoadPlugin curl_xml #LoadPlugin dbi LoadPlugin df #LoadPlugin disk #LoadPlugin dns #LoadPlugin email #LoadPlugin entropy #LoadPlugin ethstat #LoadPlugin exec #LoadPlugin filecount #LoadPlugin fscache #LoadPlugin gmond #LoadPlugin hddtemp LoadPlugin interface #LoadPlugin ipmi #LoadPlugin iptables #LoadPlugin ipvs #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 #LoadPlugin network #LoadPlugin nfs LoadPlugin nginx #LoadPlugin notify_desktop #LoadPlugin notify_email #LoadPlugin ntpd #LoadPlugin numa #LoadPlugin nut #LoadPlugin olsrd #LoadPlugin openvpn # # Globals true # #LoadPlugin pinba #LoadPlugin ping #LoadPlugin postgresql #LoadPlugin powerdns #LoadPlugin processes #LoadPlugin protocols # # Globals true # #LoadPlugin rrdcached #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 #LoadPlugin thermal #LoadPlugin tokyotyrant #LoadPlugin unixsock #LoadPlugin uptime #LoadPlugin users #LoadPlugin uuid #LoadPlugin varnish #LoadPlugin vmem #LoadPlugin vserver #LoadPlugin wireless LoadPlugin write_graphite #LoadPlugin write_http #LoadPlugin write_riemann ############################################################################## # Plugin configuration # #----------------------------------------------------------------------------# # In this section configuration stubs for each plugin are provided. A desc- # # ription of those options is available in the collectd.conf(5) manual page. # ############################################################################## Plugin "cpu" Type "cpu" GroupBy "Host" GroupBy "TypeInstance" CalculateNum false CalculateSum true CalculateAverage true CalculateMinimum false CalculateMaximum true CalculateStddev false FSType "ext4" FSType "btrfs" ReportByDevice true IgnoreSelected false ValuesAbsolute true ValuesPercentage true Interface "eth0" IgnoreSelected false URL "http://127.0.0.1/nginx_status" ReportByDevice false ReportBytes true Instance "nginx" Regex ".*" DSType "CounterInc" Type counter Instance "errors" Instance "nginx" Regex ".*" DSType "CounterInc" Type counter Instance "requests" Regex " \".*\" [0-9]+ [0-9]+ ([0-9]+)" DSType GaugeAverage Type delay Instance "response" Host "localhost" Port "2003" Protocol "tcp" LogSendErrors true Prefix "collectd." StoreRates true AlwaysAppendDS false EscapeCharacter "_" Filter "*.conf"