Merge remote-tracking branch 'github/pr/1979'
authorFlorian Forster <octo@collectd.org>
Tue, 26 Sep 2017 09:57:34 +0000 (11:57 +0200)
committerFlorian Forster <octo@collectd.org>
Tue, 26 Sep 2017 09:57:34 +0000 (11:57 +0200)
1  2 
src/collectd.conf.in
src/collectd.conf.pod

diff --combined src/collectd.conf.in
  #  ReportByCpu true
  #  ReportByState true
  #  ValuesPercentage false
 +#  ReportNumCpu false
 +#  ReportGuestState false
 +#  SubtractGuestState true
  #</Plugin>
  #
  #<Plugin csv>
  
  #<Plugin filecount>
  #     <Directory "/path/to/dir">
+ #             #Plugin "foo"
  #             Instance "foodir"
  #             Name "*.conf"
  #             MTime "-5m"
  #             Size "+10k"
  #             Recursive true
  #             IncludeHidden false
+ #             #FilesSizeType "bytes"
+ #             #FilesCountType "files"
+ #             #TypeInstance "instance"
  #     </Directory>
  #</Plugin>
  
  #             QoS 2
  #             Topic "collectd/#"
  #             CleanSession true
 +#             CACert "/etc/ssl/ca.crt"
 +#             CertificateFile "/etc/ssl/client.crt"
 +#             CertificateKeyFile "/etc/ssl/client.pem"
 +#             TLSProtocol "tlsv1.2"
 +#             CipherSuite "ciphers"
  #     </Subscribe>
  #</Plugin>
  
  #     ReportBytes true
  #     ValuesAbsolute true
  #     ValuesPercentage false
 +#     ReportIO true
  #</Plugin>
  
  #<Plugin table>
  #     <Table "/proc/slabinfo">
 +#             #Plugin "table"
  #             Instance "slabinfo"
  #             Separator " "
  #             <Result>
  #        Bucket 0.5 1.0   # -> bucket-latency-foo-0.5_1
  #        Bucket 1.0 2.0   # -> bucket-latency-foo-1_2
  #        Bucket 2.0 0     # -> bucket-latency-foo-2_inf
 +#        #BucketType "bucket"
  #      </DSType>
  #      Type "latency"
  #      Instance "foo"
  #     SystemManagementInterrupt true
  #     DigitalTemperatureSensor true
  #     PackageThermalManagement true
 -#     RunningAveragePowerLimit "7"    
 +#     RunningAveragePowerLimit "7"
  #</Plugin>
  
  #<Plugin unixsock>
diff --combined src/collectd.conf.pod
@@@ -1474,19 -1474,6 +1474,19 @@@ in the un-aggregated (per-CPU, per-stat
  When set to B<true>, reports the number of available CPUs.
  Defaults to B<false>.
  
 +=item B<ReportGuestState> B<false>|B<true>
 +
 +When set to B<true>, reports the "guest" and "guest_nice" CPU states.
 +Defaults to B<false>.
 +
 +=item B<SubtractGuestState> B<false>|B<true>
 +
 +This option is only considered when B<ReportGuestState> is set to B<true>.
 +"guest" and "guest_nice" are included in respectively "user" and "nice".
 +If set to B<true>, "guest" will be subtracted from "user" and "guest_nice"
 +will be subtracted from "nice".
 +Defaults to B<true>.
 +
  =back
  
  =head2 Plugin C<cpufreq>
@@@ -2743,12 -2730,16 +2743,16 @@@ blocks, the following options are recog
  
  =over 4
  
+ =item B<Plugin> I<Plugin>
+ Use I<Plugin> as the plugin name when submitting values.
+ Defaults to B<filecount>.
  =item B<Instance> I<Instance>
  
- Sets the plugin instance to I<Instance>. That instance name must be unique, but
- it's your responsibility, the plugin doesn't check for that. If not given, the
- instance is set to the directory name with all slashes replaced by underscores
- and all leading underscores removed.
+ Sets the plugin instance to I<Instance>. If not given, the instance is set to
+ the directory name with all slashes replaced by underscores and all leading
+ underscores removed. Empty value is allowed.
  
  =item B<Name> I<Pattern>
  
@@@ -2794,6 -2785,21 +2798,21 @@@ Controls whether or not to include "hid
  "Hidden" files and directories are those, whose name begins with a dot.
  Defaults to I<false>, i.e. by default hidden files and directories are ignored.
  
+ =item B<FilesSizeType> I<Type>
+ Sets the type used to dispatch files combined size. Empty value ("") disables
+ reporting. Defaults to B<bytes>.
+ =item B<FilesCountType> I<Type>
+ Sets the type used to dispatch number of files. Empty value ("") disables
+ reporting. Defaults to B<files>.
+ =item B<TypeInstance> I<Instance>
+ Sets the I<type instance> used to dispatch values. Defaults to an empty string
+ (no plugin instance).
  =back
  
  =head2 Plugin C<GenericJMX>
@@@ -4186,18 -4192,18 +4205,18 @@@ the B<collectd> branch
  Path to the PEM-encoded CA certificate file. Setting this option enables TLS
  communication with the MQTT broker, and as such, B<Port> should be the TLS-enabled
  port of the MQTT broker.
 -A valid TLS configuration requires B<CACert>, B<CertificateFile> and B<CertificateKeyFile>.
 +This option enables the use of TLS.
  
  =item B<CertificateFile> I<file>
  
  Path to the PEM-encoded certificate file to use as client certificate when
  connecting to the MQTT broker.
 -A valid TLS configuration requires B<CACert>, B<CertificateFile> and B<CertificateKeyFile>.
 +Only valid if B<CACert> and B<CertificateKeyFile> are also set.
  
  =item B<CertificateKeyFile> I<file>
  
  Path to the unencrypted PEM-encoded key file corresponding to B<CertificateFile>.
 -A valid TLS configuration requires B<CACert>, B<CertificateFile> and B<CertificateKeyFile>.
 +Only valid if B<CACert> and B<CertificateFile> are also set.
  
  =item B<TLSProtocol> I<protocol>
  
@@@ -4205,14 -4211,13 +4224,14 @@@ If configured, this specifies the strin
  C<tlsv1.2>) to use for the TLS connection to the broker. If not set a default
  version is used which depends on the version of OpenSSL the Mosquitto library
  was linked against.
 +Only valid if B<CACert> is set.
  
  =item B<CipherSuite> I<ciphersuite>
  
  A string describing the ciphers available for use. See L<ciphers(1)> and the
  C<openssl ciphers> utility for more information. If unset, the default ciphers
  will be used.
 -
 +Only valid if B<CACert> is set.
  
  =back
  
@@@ -4342,11 -4347,11 +4361,11 @@@ If enabled, the plugin sends a notifica
  or SQL threads are not running. Defaults to B<false>.
  
  =item B<WsrepStats> I<true|false>
 - 
 +
   Enable the collection of wsrep plugin statistics, used in Master-Master
   replication setups like in MySQL Galera/Percona XtraDB Cluster.
   User needs only privileges to execute 'SHOW GLOBAL STATUS'
 - 
 +
  =item B<ConnectTimeout> I<Seconds>
  
  Sets the connect timeout for the MySQL client.
@@@ -5187,7 -5192,7 +5206,7 @@@ System (NFS). It counts the number of p
  grouped by version and whether the system runs as server or client.
  
  It is possibly to omit metrics for a specific NFS version by setting one or
 -more of the following options to B<false> (all of them default to B<true>). 
 +more of the following options to B<false> (all of them default to B<true>).
  
  =over 4
  
@@@ -5669,12 -5674,15 +5688,12 @@@ The OpenVPN plugin reads a status file 
  traffic statistics about connected clients.
  
  To set up OpenVPN to write to the status file periodically, use the
 -B<--status> option of OpenVPN. Since OpenVPN can write two different formats,
 -you need to set the required format, too. This is done by setting
 -B<--status-version> to B<2>.
 +B<--status> option of OpenVPN.
  
  So, in a nutshell you need:
  
    openvpn $OTHER_OPTIONS \
 -    --status "/var/run/openvpn-status" 10 \
 -    --status-version 2
 +    --status "/var/run/openvpn-status" 10
  
  Available options:
  
@@@ -7538,13 -7546,6 +7557,13 @@@ available and free. Defaults to B<false
  This is useful for deploying I<collectd> in a heterogeneous environment, where
  swap sizes differ and you want to specify generic thresholds or similar.
  
 +=item B<ReportIO> B<true>|B<false>
 +
 +Enables or disables reporting swap IO. Defaults to B<true>.
 +
 +This is useful for the cases when swap IO is not neccessary, is not available,
 +or is not reliable.
 +
  =back
  
  =head2 Plugin C<syslog>
@@@ -7580,7 -7581,6 +7599,7 @@@ filesystem or CSV (comma separated valu
  
    <Plugin table>
      <Table "/proc/slabinfo">
 +      #Plugin "slab"
        Instance "slabinfo"
        Separator " "
        <Result>
@@@ -7607,14 -7607,10 +7626,14 @@@ The following options are available ins
  
  =over 4
  
 +=item B<Plugin> I<Plugin>
 +
 +If specified, I<Plugin> is used as the plugin name when submitting values.
 +Defaults to B<table>.
 +
  =item B<Instance> I<instance>
  
 -If specified, I<instance> is used as the plugin instance. So, in the above
 -example, the plugin name C<table-slabinfo> would be used. If omitted, the
 +If specified, I<instance> is used as the plugin instance. If omitted, the
  filename of the table is used instead, with all special characters replaced
  with an underscore (C<_>).
  
@@@ -7704,7 -7700,6 +7723,7 @@@ user using (extended) regular expressio
          <DSType "Distribution">
            Percentile 99
            Bucket 0 100
 +          #BucketType "bucket"
          </DSType>
          Type "latency"
          Instance "foo"
@@@ -7824,7 -7819,6 +7843,7 @@@ B<Synopsis:
    <DSType "Distribution">
      Percentile 99
      Bucket 0 100
 +    BucketType "bucket"
    </DSType>
  
  =over 4
@@@ -7861,17 -7855,11 +7880,17 @@@ the following schema
    Bucket  20  50
    Bucket  50   0
  
 -Metrics are reported with the I<type> C<bucket> and the I<type instance>
 +Metrics are reported with the I<type> set by B<BucketType> option (C<bucket> 
 +by default) and the I<type instance>
  C<E<lt>TypeE<gt>[-E<lt>InstanceE<gt>]-E<lt>lower_boundE<gt>_E<lt>upper_boundE<gt>>.
  
  This option may be repeated to calculate more than one rate.
  
 +=item B<BucketType> I<Type>
 +
 +Sets the type used to dispatch B<Bucket> metrics.
 +Optional, by default C<bucket> will be used.
 +
  =back
  
  =back
@@@ -8223,9 -8211,9 +8242,9 @@@ collections. The different bits of thi
  
  Boolean enabling the use of logical core numbering for per core statistics.
  When enabled, C<cpuE<lt>nE<gt>> is used as plugin instance, where I<n> is a
 -sequential number assigned by the kernel. Otherwise, C<coreE<lt>nE<gt>> is used
 -where I<n> is the n-th core of the socket, causing name conflicts when there is
 -more than one socket.
 +dynamic number assigned by the kernel. Otherwise, C<coreE<lt>nE<gt>> is used
 +if there is only one package and C<pkgE<lt>nE<gt>-coreE<lt>mE<gt>> if there is
 +more than one, where I<n> is the n-th core of package I<m>.
  
  =back
  
@@@ -8511,7 -8499,7 +8530,7 @@@ will be collected
  =item B<BlockDeviceFormat> B<target>|B<source>
  
  If I<BlockDeviceFormat> is set to B<target>, the default, then the device name
 -seen by the guest will be used for reporting metrics. 
 +seen by the guest will be used for reporting metrics.
  This corresponds to the C<E<lt>targetE<gt>> node in the XML definition of the
  domain.