From a8d9e458ab5cff952e2be99f56e43124785e27d1 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Mon, 22 Jan 2018 12:04:16 -0800 Subject: [PATCH] Remove graphite serializer replacement of dot with underscore in field key (#3705) (cherry picked from commit 4558aeddeb672192cd2588ff8dd45e06f70b7d18) --- 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 157add41d..f88305ab4 100644 --- a/plugins/serializers/graphite/graphite.go +++ b/plugins/serializers/graphite/graphite.go @@ -133,7 +133,7 @@ func InsertField(bucket, fieldName string) string { if fieldName == "value" { return fieldDeleter.Replace(bucket) } - return strings.Replace(bucket, "FIELDNAME", strings.Replace(fieldName, ".", "_", -1), 1) + return strings.Replace(bucket, "FIELDNAME", fieldName, 1) } func buildTags(tags map[string]string) string {