#include "utils_cache.h"
#include "utils_format_graphite.h"
-#define GRAPHITE_FORBIDDEN " \t\"\\:!/()\n\r"
+#define GRAPHITE_FORBIDDEN " \t\"\\:!,/()\n\r"
/* Utils functions to format data sets in graphite format.
* Largely taken from write_graphite.c as it remains the same formatting */
.type_instance = "test: \"hello\"",
.want_name = "example@com.test-foo@@test@.single-test@@@hello@",
},
+ {
+ .plugin_instance = "foo (test)",
+ .type_instance = "test: \"hello\"",
+ .want_name = "example,com.test-foo,,test,.single-test,,,hello,",
+ },
/* flag GRAPHITE_SEPARATE_INSTANCES */
{
.plugin_instance = "foo",