stackdriver: fix froamt annotation text for value

This commit is contained in:
Erik Sundell 2018-09-28 13:50:10 +02:00
parent ca50e315fa
commit 2aae7e0c87

View File

@ -2,7 +2,6 @@ package stackdriver
import (
"context"
"fmt"
"strconv"
"strings"
"time"
@ -99,7 +98,7 @@ func formatAnnotationText(annotationText string, pointValue string, metricType s
}
if metaPartName == "value" {
return []byte(fmt.Sprintf("%f", pointValue))
return []byte(pointValue)
}
metaPartName = strings.Replace(metaPartName, "metric.label.", "", 1)