From a3b8297ca4e9b3f5e3652a347333526546306041 Mon Sep 17 00:00:00 2001 From: Sebastian Pfahl Date: Mon, 15 Jun 2015 14:07:57 +0000 Subject: [PATCH] removed separator between prefix and the rest of the key --- src/collectd.conf.pod | 2 +- src/write_redis.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 874c16c1..ab3bbf8a 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -7491,7 +7491,7 @@ Synopsis: 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 or C if a Prefix was specified and can be +I are kept in a I called C or C if a Prefix was specified and can be retrieved using the C I command. See L and L for details. diff --git a/src/write_redis.c b/src/write_redis.c index 1bd9b20b..dfa031c0 100644 --- a/src/write_redis.c +++ b/src/write_redis.c @@ -72,7 +72,7 @@ static int wr_write (const data_set_t *ds, /* {{{ */ 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)); -- 2.11.0