Skip to content
Snippets Groups Projects
Commit 5b0c3951 authored by JP's avatar JP
Browse files

replace @ character with - for librato

parent f2394b5a
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,10 @@ func (l *Librato) buildGaugeName(m telegraf.Metric, fieldName string) string {
serializedMetric := graphiteSerializer.SerializeBucketName(m, fieldName)
// Deal with slash characters:
return strings.Replace(serializedMetric, "/", "-", -1)
replacedString := strings.Replace(serializedMetric, "/", "-", -1)
// Deal with @ characters:
replacedString = strings.Replace(replacedString, "@", "-", -1)
return replacedString
}
func (l *Librato) buildGauges(m telegraf.Metric) ([]*Gauge, error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment