replace @ character with - for librato
This commit is contained in:
parent
f2394b5a8d
commit
5b0c3951f6
|
@ -159,7 +159,10 @@ func (l *Librato) buildGaugeName(m telegraf.Metric, fieldName string) string {
|
||||||
serializedMetric := graphiteSerializer.SerializeBucketName(m, fieldName)
|
serializedMetric := graphiteSerializer.SerializeBucketName(m, fieldName)
|
||||||
|
|
||||||
// Deal with slash characters:
|
// 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) {
|
func (l *Librato) buildGauges(m telegraf.Metric) ([]*Gauge, error) {
|
||||||
|
|
Loading…
Reference in New Issue