From 841aad39040d84e1471a21bd1af9147801cdd89f Mon Sep 17 00:00:00 2001 From: Bob Zoller Date: Wed, 27 Apr 2016 15:19:22 -0700 Subject: [PATCH] sanitize * to - in graphite serializer --- 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 6484d3fee..bf2e75579 100644 --- a/plugins/serializers/graphite/graphite.go +++ b/plugins/serializers/graphite/graphite.go @@ -17,7 +17,7 @@ type GraphiteSerializer struct { Template string } -var sanitizedChars = strings.NewReplacer("/", "-", "@", "-", " ", "_", "..", ".") +var sanitizedChars = strings.NewReplacer("/", "-", "@", "-", "*", "-", " ", "_", "..", ".") func (s *GraphiteSerializer) Serialize(metric telegraf.Metric) ([]string, error) { out := []string{}