converted values will have "rate" appended to the data source type, e.g.
C<ds_type:derive:rate>.
+=item B<AlwaysAppendDS> B<false>|B<true>
+
+If set the B<true>, append the name of the I<Data Source> (DS) to the
+"service", i.e. the field that, together with the "host" field, uniquely
+identifies a metric in I<Riemann>. If set to B<false> (the default), this is
+only done when there is more than one DS.
+
=back
=item B<Tag> I<String>
uint8_t flags;
pthread_mutex_t lock;
_Bool store_rates;
+ _Bool always_append_ds;
char *node;
char *service;
int s;
format_name (name_buffer, sizeof (name_buffer),
/* host = */ "", vl->plugin, vl->plugin_instance,
vl->type, vl->type_instance);
- if (ds->ds_num > 1)
+ if (host->always_append_ds || (ds->ds_num > 1))
ssnprintf (service_buffer, sizeof (service_buffer),
"%s/%s", &name_buffer[1], ds->ds[index].name);
else
host->node = NULL;
host->service = NULL;
host->store_rates = 1;
+ host->always_append_ds = 0;
status = cf_util_get_string (ci, &host->name);
if (status != 0) {
status = cf_util_get_boolean (child, &host->store_rates);
if (status != 0)
break;
+ } else if (strcasecmp ("AlwaysAppendDS", child->key) == 0) {
+ status = cf_util_get_boolean (child,
+ &host->always_append_ds);
+ if (status != 0)
+ break;
} else {
WARNING("write_riemann plugin: ignoring unknown config "
"option: \"%s\"", child->key);