From 2aae7e0c873dbdc5adb3eb4bd7e0f93ed42e0ac2 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Fri, 28 Sep 2018 13:50:10 +0200 Subject: [PATCH] stackdriver: fix froamt annotation text for value --- pkg/tsdb/stackdriver/annotation_query.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/tsdb/stackdriver/annotation_query.go b/pkg/tsdb/stackdriver/annotation_query.go index 39cc9c341b2..d86cdc5f4c1 100644 --- a/pkg/tsdb/stackdriver/annotation_query.go +++ b/pkg/tsdb/stackdriver/annotation_query.go @@ -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)