Merge branch 'more-varnish-stats'
authorFlorian Forster <octo@collectd.org>
Sat, 25 May 2013 18:20:48 +0000 (20:20 +0200)
committerFlorian Forster <octo@collectd.org>
Sat, 25 May 2013 18:20:48 +0000 (20:20 +0200)
1  2 
src/collectd.conf.in
src/collectd.conf.pod

diff --combined src/collectd.conf.in
  #TypesDB     "@prefix@/share/@PACKAGE_NAME@/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:               #
  #   <LoadPlugin foo>                                                         #
@@@ -79,7 -72,6 +79,7 @@@
  #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
  #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack
  #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
 +#@BUILD_PLUGIN_CGROUPS_TRUE@LoadPlugin cgroups
  @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
  #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
  @LOAD_PLUGIN_CSV@LoadPlugin csv
  #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
  #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
  #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
 +#@BUILD_PLUGIN_MIC_TRUE@LoadPlugin mic
  #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
  #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
  #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
  #     UUIDFile "/etc/uuid"
  #</Plugin>
  
 +#<Plugin mic>
 +#   ShowCPU true
 +#   ShowCPUCores true
 +#   ShowMemory true
 +#   ShowTemperatures true
 +##  Temperature Sensors can be ignored/shown by repeated #Temperature lines, and
 +##  then inverted with a IgnoreSelectedTemperature.
 +##  Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq
 +#   Temperature vddg
 +#   IgnoreSelectedTemperature true
 +#   ShowPower true
 +##  Power Sensors can be ignored/shown by repeated #Power lines, and
 +##  then inverted with a IgnoreSelectedTemperature.
 +##  Known Temperature sensors: total0, total1, inst, imax, pci3, c2x3, c2x4, vccp, vddg, vddq
 +#   Power total1
 +#   IgnoreSelectedPower true
 +#</Plugin>
 +
  #<Plugin varnish>
  #   This tag support an argument if you want to
  #   monitor the local instance just use </Instance>
  #   <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
+ #      CollectVCL false
  #      CollectWorkers false
  #   </Instance>
  #</Plugin>
diff --combined src/collectd.conf.pod
@@@ -68,33 -68,17 +68,33 @@@ directory for the daemon
  
  =item B<LoadPlugin> I<Plugin>
  
 -Loads the plugin I<Plugin>. There must be at least one such line or B<collectd>
 -will be mostly useless.
 +Loads the plugin I<Plugin>. This is required to load plugins, unless the
 +B<AutoLoadPlugin> option is enabled (see below). Without any loaded plugins,
 +I<collectd> will be mostly useless.
  
 -Starting with collectd 4.9, this may also be a block in which further options
 -affecting the behavior of B<LoadPlugin> may be specified. The following
 -options are allowed inside a B<LoadPlugin> block:
 +Only the first B<LoadPlugin> statement or block for a given plugin name has any
 +effect. This is useful when you want to split up the configuration into smaller
 +files and want each file to be "self contained", i.e. it contains a B<Plugin>
 +block I<and> then appropriate B<LoadPlugin> statement. The downside is that if
 +you have multiple conflicting B<LoadPlugin> blocks, e.g. when they specify
 +different intervals, only one of them (the first one encountered) will take
 +effect and all others will be silently ignored.
  
 -  <LoadPlugin perl>
 -    Globals true
 -    Interval 10
 -  </LoadPlugin>
 +B<LoadPlugin> may either be a simple configuration I<statement> or a I<block>
 +with additional options, affecting the behavior of B<LoadPlugin>. A simple
 +statement looks like this:
 +
 + LoadPlugin "cpu"
 +
 +Options inside a B<LoadPlugin> block can override default settings and
 +influence the way plugins are loaded, e.g.:
 +
 + <LoadPlugin perl>
 +   Globals true
 +   Interval 60
 + </LoadPlugin>
 +
 +The following options are valid inside B<LoadPlugin> blocks:
  
  =over 4
  
@@@ -125,19 -109,6 +125,19 @@@ interval, that setting will take preced
  
  =back
  
 +=item B<AutoLoadPlugin> B<false>|B<true>
 +
 +When set to B<false> (the default), each plugin needs to be loaded explicitly,
 +using the B<LoadPlugin> statement documented above. If a
 +B<E<lt>PluginE<nbsp>...E<gt>> block is encountered and no configuration
 +handling callback for this plugin has been registered, a warning is logged and
 +the block is ignored.
 +
 +When set to B<true>, explicit B<LoadPlugin> statements are not required. Each
 +B<E<lt>PluginE<nbsp>...E<gt>> block acts as if it was immediately preceded by a
 +B<LoadPlugin> statement. B<LoadPlugin> statements are still required for
 +plugins that don't provide any configuration, e.g. the I<Load plugin>.
 +
  =item B<Include> I<Path> [I<pattern>]
  
  If I<Path> points to a file, includes that file. If I<Path> points to a
@@@ -881,29 -852,6 +881,29 @@@ By default no detailed zone informatio
  
  =back
  
 +=head2 Plugin C<cgroups>
 +
 +This plugin collects the CPU user/system time for each I<cgroup> by reading the
 +F<cpuacct.stat> files in the first cpuacct-mountpoint (typically
 +F</sys/fs/cgroup/cpu.cpuacct> on machines using systemd).
 +
 +=over 4
 +
 +=item B<CGroup> I<Directory>
 +
 +Select I<cgroup> based on the name. Whether only matching I<cgroups> are
 +collected or if they are ignored is controlled by the B<IgnoreSelected> option;
 +see below.
 +
 +=item B<IgnoreSelected> B<true>|B<false>
 +
 +Invert the selection: If set to true, all cgroups I<except> the ones that
 +match any one of the criteria are collected. By default only selected
 +cgroups are collected if a selection is made. If no selection is configured
 +at all, B<all> cgroups are selected.
 +
 +=back
 +
  =head2 Plugin C<cpufreq>
  
  This plugin doesn't have any options. It reads
@@@ -2259,7 -2207,7 +2259,7 @@@ interpreted. For a description of matc
  
  =head2 Plugin C<memcached>
  
 -The C<memcached plugin> connects to a memcached server and queries statistics
 +The B<memcached plugin> connects to a memcached server and queries statistics
  about cache utilization, memory and bandwidth used.
  L<http://www.danga.com/memcached/>
  
@@@ -2291,166 -2239,6 +2291,166 @@@ setting is given, the B<Host> and B<Por
  
  =back
  
 +=head2 Plugin C<mic>
 +
 +The B<mic plugin> gathers CPU statistics, memory usage and temperatures from
 +Intel's Many Integrated Core (MIC) systems.
 +
 +B<Synopsis:>
 +
 + <Plugin mic>
 +   ShowCPU true
 +   ShowCPUCores true
 +   ShowMemory true
 +   
 +   ShowTemperatures true
 +   Temperature vddg
 +   Temperature vddq
 +   IgnoreSelectedTemperature true
 +
 +   ShowPower true
 +   Power total0
 +   Power total1
 +   IgnoreSelectedPower true   
 + </Plugin>
 +
 +The following options are valid inside the B<PluginE<nbsp>mic> block:
 +
 +=over 4
 +
 +=item B<ShowCPU> B<true>|B<false>
 +
 +If enabled (the default) a sum of the CPU usage accross all cores is reported.
 +
 +=item B<ShowCPUCores> B<true>|B<false>
 +
 +If enabled (the default) per-core CPU usage is reported.
 +
 +=item B<ShowMemory> B<true>|B<false>
 +
 +If enabled (the default) the physical memory usage of the MIC system is
 +reported.
 +
 +=item B<ShowTemperatures> B<true>|B<false>
 +
 +If enabled (the default) various temperatures of the MIC system are reported.
 +
 +=item B<Temperature> I<Name>
 +
 +This option controls which temperatures are being reported. Whether matching
 +temperatures are being ignored or I<only> matching temperatures are reported
 +depends on the B<IgnoreSelectedTemperature> setting below. By default I<all>
 +temperatures are reported.
 +
 +=item B<IgnoreSelectedTemperature> B<false>|B<true>
 +
 +Controls the behavior of the B<Temperature> setting above. If set to B<false>
 +(the default) only temperatures matching a B<Temperature> option are reported
 +or, if no B<Temperature> option is specified, all temperatures are reported. If
 +set to B<true>, matching temperatures are I<ignored> and all other temperatures
 +are reported.
 +
 +Known temperature names are:
 +
 +=over 4
 +
 +=item die
 +
 +Die of the CPU
 +
 +=item devmem
 +
 +Device Memory
 +
 +=item fin
 +
 +Fan In
 +
 +=item fout
 +
 +Fan Out 
 +
 +=item vccp
 +
 +Voltage ccp
 +
 +=item vddg
 +
 +Voltage ddg
 +
 +=item vddq
 +
 +Voltage ddq
 +
 +=back
 +
 +=item B<ShowPower> B<true>|B<false>
 +
 +If enabled (the default) various temperatures of the MIC system are reported.
 +
 +=item B<Power> I<Name>
 +
 +This option controls which power readings are being reported. Whether matching
 +power readings are being ignored or I<only> matching power readings are reported
 +depends on the B<IgnoreSelectedPower> setting below. By default I<all>
 +power readings are reported.
 +
 +=item B<IgnoreSelectedPower> B<false>|B<true>
 +
 +Controls the behavior of the B<Power> setting above. If set to B<false>
 +(the default) only power readings matching a B<Power> option are reported
 +or, if no B<Power> option is specified, all power readings are reported. If
 +set to B<true>, matching power readings are I<ignored> and all other power readings
 +are reported.
 +
 +Known power names are:
 +
 +=over 4
 +
 +=item total0
 +
 +Total power utilization averaged over Time Window 0 (uWatts). 
 +
 +=item total1
 +
 +Total power utilization averaged over Time Window 0 (uWatts). 
 +
 +=item inst
 +
 +Instantaneous power (uWatts).
 +
 +=item imax
 +
 +Max instantaneous power (uWatts). 
 +
 +=item pcie
 +
 +PCI-E connector power (uWatts). 
 +
 +=item c2x3
 +
 +2x3 connector power (uWatts). 
 +
 +=item c2x4
 +
 +2x4 connector power (uWatts). 
 +
 +=item vccp
 +
 +Core rail (uVolts). 
 +
 +=item vddg
 +
 +Uncore rail (uVolts). 
 +
 +=item vddq
 +
 +Memory subsystem rail (uVolts). 
 +
 +=back
 +
 +=back
 +
  =head2 Plugin C<modbus>
  
  The B<modbus plugin> connects to a Modbus "slave" via Modbus/TCP and reads
@@@ -2458,7 -2246,7 +2458,7 @@@ register values. It supports reading si
  values), large integer values (unsigned 32E<nbsp>bit values) and floating point
  values (two registers interpreted as IEEE floats in big endian notation).
  
 -Synopsis:
 +B<Synopsis:>
  
   <Data "voltage-input-1">
     RegisterBase 0
@@@ -5709,6 -5497,17 +5709,17 @@@ and closed connections. True by default
  Statistics about the shared memory log, a memory region to store
  log messages which is flushed to disk when full. True by default.
  
+ =item B<CollectBan> B<true>|B<false>
+ Statistics about ban operations, such as number of bans added, retired, and
+ number of objects tested against ban operations. Only available with Varnish
+ 3.x. False by default.
+ =item B<CollectDirectorDNS> B<true>|B<false>
+ DNS director lookup cache statistics. Only available with Varnish 3.x. False by
+ default.
  =item B<CollectESI> B<true>|B<false>
  
  Edge Side Includes (ESI) parse statistics. False by default.
@@@ -5722,10 -5521,27 +5733,27 @@@ Statistics about fetches (HTTP request
  Inserts and look-ups in the crit bit tree based hash. Look-ups are
  divided into locked and unlocked look-ups. False by default.
  
+ =item B<CollectObjects> B<true>|B<false>
+ Statistics on cached objects: number of objects expired, nuked (prematurely
+ expired), saved, moved, etc. False by default.
+ =item B<CollectPurge> B<true>|B<false>
+ Statistics about purge operations, such as number of purges added, retired, and
+ number of objects tested against purge operations. Only available with Varnish
+ 2.x. False by default.
+ =item B<CollectSession> B<true>|B<false>
+ Client session statistics. Number of past and current sessions, session herd and
+ linger counters, etc. False by default.
  =item B<CollectSMA> B<true>|B<false>
  
- malloc or umem (umem_alloc(3MALLOC) based) storage statistics.
- The umem storage component is Solaris specific. False by default.
+ malloc or umem (umem_alloc(3MALLOC) based) storage statistics. The umem storage
+ component is Solaris specific. Only available with Varnish 2.x. False by
+ default.
  
  =item B<CollectSMS> B<true>|B<false>
  
@@@ -5734,13 -5550,28 +5762,28 @@@ component is used internally only. Fals
  
  =item B<CollectSM> B<true>|B<false>
  
- file (memory mapped file) storage statistics. False by default.
+ file (memory mapped file) storage statistics. Only available with Varnish 2.x.
+ False by default.
+ =item B<CollectStruct> B<true>|B<false>
+ Current varnish internal state statistics. Number of current sessions, objects
+ in cache store, open connections to backends (with Varnish 2.x), etc. False by
+ default.
  
  =item B<CollectTotals> B<true>|B<false>
  
  Collects overview counters, such as the number of sessions created,
  the number of requests and bytes transferred. False by default.
  
+ =item B<CollectUptime> B<true>|B<false>
+ Varnish uptime. False by default.
+ =item B<CollectVCL> B<true>|B<false>
+ Number of total (available + discarded) VCL (config files). False by default.
  =item B<CollectWorkers> B<true>|B<false>
  
  Collect statistics about worker threads. False by default.