From: Pierre-Yves Ritschard Date: Sat, 15 Nov 2014 14:45:00 +0000 (+0100) Subject: Merge pull request #796 from mfournier/write_redis-colon-mistake X-Git-Tag: collectd-5.3.2~23 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=3ebba024911f32c4b870937747be8e623439964d;hp=027148fd9f4a43673cd9729eebf38ec8b0075300;p=collectd.git Merge pull request #796 from mfournier/write_redis-colon-mistake write_redis: re-add colon dropped in b7984797 + manpage --- diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 69e50056..7a4eb938 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -5812,6 +5812,61 @@ number. =back +=head2 Plugin C + +The I submits values to I, a data structure server. + +Synopsis: + + + + Host "localhost" + Port "6379" + Timeout 1000 + + + +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 +L and L for +details. + +The information shown in the synopsis above is the I +which is used by the plugin if no configuration is present. + +The plugin can send values to multiple instances of I by specifying +one B block for each instance. Within the B blocks, the following +options are available: + +=over 4 + +=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 +canonical identifier which is used as I. It is limited to +64Echaracters in length. + +=item B I + +The B option is the hostname or IP-address where the I instance is +running on. + +=item B I + +The B option is the TCP port on which the Redis instance accepts +connections. Either a service name of a port number may be given. Please note +that numerical port numbers must be given as a string, too. + +=item B I + +The B option sets the socket connection timeout, in milliseconds. + +=back + =head2 Plugin C The I will send values to I, a powerfull stream diff --git a/src/write_redis.c b/src/write_redis.c index 58f2cae3..1d9ec27c 100644 --- a/src/write_redis.c +++ b/src/write_redis.c @@ -84,7 +84,7 @@ static int wr_write (const data_set_t *ds, /* {{{ */ } \ } while (0) - APPEND ("%lu", (unsigned long) vl->time); + APPEND ("%lu:", (unsigned long) vl->time); for (i = 0; i < ds->ds_num; i++) { if (ds->ds[i].type == DS_TYPE_COUNTER)