X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcollectd.conf.pod;h=aaeeaf419b703913392ef5e78448ffa76fc451dc;hb=3348ace2cdd95bc1de5e28d11f3999cf5bd4ebf4;hp=05ae8f36de38eb420cd61abaedb75d0a0fc90b76;hpb=e94f5c95909f895a80457baf543e03b6d6aff5ee;p=collectd.git diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 05ae8f36..aaeeaf41 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -510,10 +510,12 @@ are disabled by default. =head2 Plugin C -The I can be used to communicate with other instances of +The I can be used to communicate with other instances of I or third party applications using an AMQP message broker. Values are sent to or received from the broker, which handles routing, queueing and -possibly filtering or messages. +possibly filtering out messages. + +B # Send values to an AMQP broker @@ -811,12 +813,22 @@ B can handle it. TCP-Port to connect to. Defaults to B<3551>. -=item B B +=item B B|B If set to B, the time reported in the C metric will be converted to seconds. This is the recommended setting. If set to B, the default for backwards compatibility, the time will be reported in minutes. +=item B B|B + +By default, the plugin will try to keep the connection to UPS open between +reads. Since this appears to be somewhat brittle (I appears to close +the connection due to inactivity quite quickly), the plugin will try to detect +this problem and switch to an open-read-close mode in such cases. + +You can instruct the plugin to close the connection after each read by setting +this option to B. + =back =head2 Plugin C @@ -1555,7 +1567,7 @@ setting accordingly to prevent this from blocking other plugins. =head2 Plugin C The B collects values from JSON data to be parsed by -B (L) retrieved via +B (L) retrieved via either B (L) or read directly from a unix socket. The former can be used, for example, to collect values from CouchDB documents (which are stored JSON notation), and the @@ -2276,7 +2288,7 @@ expected from them. This is documented in great detail in L. =head2 Plugin C The C plugin provides statistics about used, unused and total number of -file handles. +file handles on Linux. The I provides the following configuration options: @@ -3223,6 +3235,114 @@ B option is mandatory. =back +=head2 Plugin C + +The I can send metrics to MQTT (B blocks) and receive +values from MQTT (B blocks). + +B + + + + Host "mqtt.example.com" + Prefix "collectd" + + + Host "mqtt.example.com" + Topic "collectd/#" + + + +The plugin's configuration is in B and/or B blocks, +configuring the sending and receiving direction respectively. The plugin will +register a write callback named C> where I is the string +argument given to the B block. Both types of blocks share many but not +all of the following options. If an option is valid in only one of the blocks, +it will be mentioned explicitly. + +B + +=over 4 + +=item B I + +Hostname of the MQTT broker to connect to. + +=item B I + +Port number or service name of the MQTT broker to connect to. + +=item B I + +Username used when authenticating to the MQTT broker. + +=item B I + +Password used when authenticating to the MQTT broker. + +=item B I + +MQTT client ID to use. Defaults to the hostname used by I. + +=item B [B<0>-B<2>] + +Sets the I, with the values C<0>, C<1> and C<2> meaning: + +=over 4 + +=item B<0> + +At most once + +=item B<1> + +At least once + +=item B<2> + +Exactly once + +=back + +In B blocks, this option determines the QoS flag set on outgoing +messages and defaults to B<0>. In B blocks, determines the maximum +QoS setting the client is going to accept and defaults to B<2>. If the QoS flag +on a message is larger than the maximum accepted QoS of a subscriber, the +message's QoS will be downgraded. + +=item B I (Publish only) + +This plugin will use one topic per I which will looks like a path. +I is used as the first path element and defaults to B. + +An example topic name would be: + + collectd/cpu-0/cpu-user + +=item B B|B (Publish only) + +Controls whether the MQTT broker will retain (keep a copy of) the last message +sent to each topic and deliver it to new subscribers. Defaults to B. + +=item B B|B (Publish only) + +Controls whether C and C metrics are converted to a I +before sending. Defaults to B. + +=item B B|B (Subscribe only) + +Controls whether the MQTT "cleans" the session up after the subscriber +disconnects or if it maintains the subscriber's subscriptions and all messages +that arrive while the subscriber is disconnected. Defaults to B. + +=item B I (Subscribe only) + +Configures the topic(s) to subscribe to. You can use the single level C<+> and +multi level C<#> wildcards. Defaults to B, i.e. all topics beneath +the B branch. + +=back + =head2 Plugin C The C requires B to be installed. It connects to @@ -4503,6 +4623,16 @@ The following options are accepted within each B block: Sets the URL to use to connect to the I server. This option is I. +=item B I + +Name in the form of an LDAP distinguished name intended to be used for +authentication. Defaults to empty string to establish an anonymous authorization. + +=item B I + +Password for simple bind authentication. If this option is not set, +unauthenticated bind operation is used. + =item B B Defines whether TLS must be used when connecting to the I server. @@ -6989,6 +7119,10 @@ You can also specify combinations of these fields. For example B means to concatenate the guest name and UUID (with a literal colon character between, thus I<"foo:1234-1234-1234-1234">). +At the moment of writing (collectd-5.5), hostname string is limited to 62 +characters. In case when combination of fields exceeds 62 characters, +hostname will be truncated without a warning. + =item B B|B
When the virt plugin logs interface data, it sets the name of the collected @@ -7474,14 +7608,18 @@ Synopsis: Host "localhost" Port "6379" Timeout 1000 + Prefix "collectd/" + Database 1 Values are submitted to I, using the metric name as the key, and the timestamp as the score. Retrieving a date range can then be done using the -C I command. Additionnally, all the identifiers of these -I are kept in a I called C and can be -retrieved using the C I command. See +C I command. Additionally, all the identifiers of these +I are kept in a I called C (or +C<${prefix}/values> if the B option was specified) and can be retrieved +using the C I command. You can specify the database to use +with the B parameter (default is C<0>). See L and L for details. @@ -7497,9 +7635,9 @@ options are available: =item B I The B block identifies a new I node, that is a new I -instance running in an specified host and port. The name for node is a +instance running on a specified host and port. The node name is a canonical identifier which is used as I. It is limited to -64Echaracters in length. +51Echaracters in length. =item B I @@ -7516,6 +7654,17 @@ that numerical port numbers must be given as a string, too. The B option sets the socket connection timeout, in milliseconds. +=item B I + +Prefix used when constructing the name of the I and the I +containing all metrics. Defaults to C, so metrics will have names +like C. When setting this to something different, it +is recommended but not required to include a trailing slash in I. + +=item B I + +This index selects the redis database to use for writing operations. Defaults to C<0>. + =back =head2 Plugin C