X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Famqp.c;fp=src%2Famqp.c;h=30f6f42703b58ae3e7a642bd474eb5d6415eef26;hb=9708614487ec93df67ad1095f3cf5a0987b9cc28;hp=24bc4881f6659049ca465d249c312332d0912aba;hpb=a2c0ff89b4792142dff02ee46bc5a578a5e6063e;p=collectd.git diff --git a/src/amqp.c b/src/amqp.c index 24bc4881..30f6f427 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -927,6 +927,7 @@ static int camqp_config_connection (oconfig_item_t *ci, /* {{{ */ /* publish only */ conf->delivery_mode = CAMQP_DM_VOLATILE; conf->store_rates = 0; + conf->graphite_flags = 0; /* publish & graphite only */ conf->prefix = NULL; conf->postfix = NULL; @@ -992,6 +993,12 @@ static int camqp_config_connection (oconfig_item_t *ci, /* {{{ */ } else if ((strcasecmp ("Format", child->key) == 0) && publish) status = camqp_config_set_format (child, conf); + else if ((strcasecmp ("GraphiteSeparateInstances", child->key) == 0) && publish) + status = cf_util_get_flag (child, &conf->graphite_flags, + GRAPHITE_SEPARATE_INSTANCES); + else if ((strcasecmp ("GraphiteAlwaysAppendDS", child->key) == 0) && publish) + status = cf_util_get_flag (child, &conf->graphite_flags, + GRAPHITE_ALWAYS_APPEND_DS); else if ((strcasecmp ("GraphitePrefix", child->key) == 0) && publish) status = cf_util_get_string (child, &conf->prefix); else if ((strcasecmp ("GraphitePostfix", child->key) == 0) && publish)