Service name or port number to connect to. Defaults to C<5555>.
-=item B<Delay> I<Seconds>
-
-Time (in seconds) that is added to each I<data set's> interval when calculating
-the I<time to live> (TTL) of the metric to be sent to I<Riemann>. Defaults to
-B<1>.
-
=item B<StoreRates> B<false>|B<true>
If set to B<true> (the default), convert counter values to rates. If set to
#include <inttypes.h>
#include <pthread.h>
-#define RIEMANN_DELAY 1
#define RIEMANN_HOST "localhost"
#define RIEMANN_PORT "5555"
#define F_CONNECT 0x01
uint8_t flags;
pthread_mutex_t lock;
- int delay;
_Bool store_rates;
char *node;
char *service;
event->host = strdup (vl->host);
event->time = CDTIME_T_TO_TIME_T (vl->time);
event->has_time = 1;
- event->ttl = CDTIME_T_TO_TIME_T (vl->interval) + host->delay;
+ event->ttl = CDTIME_T_TO_TIME_T (2 * vl->interval);
event->has_ttl = 1;
riemann_event_add_tag (event, "plugin:%s", vl->plugin);
host->reference_count = 1;
host->node = NULL;
host->service = NULL;
- host->delay = RIEMANN_DELAY;
host->store_rates = 1;
status = cf_util_get_string (ci, &host->name);
"option.");
break;
}
- } else if (strcasecmp(child->key, "delay") == 0) {
- if ((status = cf_util_get_int(ci, &host->delay)) != 0)
- break;
} else if (strcasecmp ("StoreRates", child->key) == 0) {
status = cf_util_get_boolean (ci, &host->store_rates);
if (status != 0)