From 12cbf860101174b2827e9a58484bd151939c6115 Mon Sep 17 00:00:00 2001 From: G-regL Date: Thu, 28 Apr 2016 11:35:00 -0400 Subject: [PATCH] Added sanization of fieldName --- plugins/serializers/graphite/graphite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/serializers/graphite/graphite.go b/plugins/serializers/graphite/graphite.go index bf2e75579..32265325a 100644 --- a/plugins/serializers/graphite/graphite.go +++ b/plugins/serializers/graphite/graphite.go @@ -32,7 +32,7 @@ func (s *GraphiteSerializer) Serialize(metric telegraf.Metric) ([]string, error) valueS := fmt.Sprintf("%#v", value) point := fmt.Sprintf("%s %s %d", // insert "field" section of template - InsertField(bucket, fieldName), + InsertField(bucket, sanitizedChars.Replace(fieldName)), valueS, timestamp) out = append(out, point)