Added sanization of fieldName
This commit is contained in:
parent
1390c22004
commit
12cbf86010
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue