Skip to content

Commit

Permalink
Remove graphite serializer replacement of dot with underscore in fiel…
Browse files Browse the repository at this point in the history
…d key (#3705)
  • Loading branch information
danielnelson authored Jan 22, 2018
1 parent 35ec1ad commit f3a57ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/serializers/graphite/graphite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f3a57ea

Please sign in to comment.