summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ee77adc)
raw | patch | inline | side by side (parent: ee77adc)
author | Sebastian Pfahl <eryx@gmx.net> | |
Mon, 15 Jun 2015 14:07:57 +0000 (14:07 +0000) | ||
committer | Sebastian Pfahl <eryx@gmx.net> | |
Tue, 23 Jun 2015 11:20:58 +0000 (11:20 +0000) |
src/collectd.conf.pod | patch | blob | history | |
src/write_redis.c | patch | blob | history |
diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index 874c16c11a871c5e92520006f8388c47592e331b..ab3bbf8a4d2bd6b404e6f5d64f58f6677b75bde2 100644 (file)
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
Values are submitted to I<Sorted Sets>, using the metric name as the key, and
the timestamp as the score. Retrieving a date range can then be done using the
C<ZRANGEBYSCORE> I<Redis> command. Additionnally, all the identifiers of these
-I<Sorted Sets> are kept in a I<Set> called C<collectd/values> or C<Prefix/collectd/values> if a Prefix was specified and can be
+I<Sorted Sets> are kept in a I<Set> called C<collectd/values> or C<Prefix/values> if a Prefix was specified and can be
retrieved using the C<SMEMBERS> I<Redis> command. See
L<http://redis.io/commands#sorted_set> and L<http://redis.io/commands#set> for
details.
diff --git a/src/write_redis.c b/src/write_redis.c
index 1bd9b20bedda7a9a9a3a2eba94d0ba7511296260..dfa031c02218d59aef1b387a4c2f37af3d973961 100644 (file)
--- a/src/write_redis.c
+++ b/src/write_redis.c
ssnprintf (key, sizeof (key), "collectd/%s", ident);
}
else {
- ssnprintf (key, sizeof (key), "%s/collectd/%s", node->prefix, ident);
+ ssnprintf (key, sizeof (key), "%s/%s", node->prefix, ident);
}
ssnprintf (time, sizeof (time), "%.9f", CDTIME_T_TO_DOUBLE(vl->time));