X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_graphite.c;h=000b62ed9bdd5d83483e2fd892534c67c32ac62e;hb=25824c65721f0f21cadf1607fad367c7e7831816;hp=099c62bbaa7e8f8994aa401c806d9493f0876c0c;hpb=38e94dcc796e5d00088826ffd5d43ca5a2e590a2;p=collectd.git diff --git a/src/write_graphite.c b/src/write_graphite.c index 099c62bb..000b62ed 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -38,17 +38,18 @@ * Protocol "udp" * LogSendErrors true * Prefix "collectd" + * UseTags true * * */ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" +#include "utils/format_graphite/format_graphite.h" #include "utils_complain.h" -#include "utils_format_graphite.h" #include @@ -518,6 +519,8 @@ static int wg_config_node(oconfig_item_t *ci) { cf_util_get_flag(child, &cb->format_flags, GRAPHITE_PRESERVE_SEPARATOR); else if (strcasecmp("DropDuplicateFields", child->key) == 0) cf_util_get_flag(child, &cb->format_flags, GRAPHITE_DROP_DUPE_FIELDS); + else if (strcasecmp("UseTags", child->key) == 0) + cf_util_get_flag(child, &cb->format_flags, GRAPHITE_USE_TAGS); else if (strcasecmp("EscapeCharacter", child->key) == 0) config_set_char(&cb->escape_char, child); else {