Explorar o código

stackdriver: fix froamt annotation text for value

Erik Sundell %!s(int64=7) %!d(string=hai) anos
pai
achega
2aae7e0c87
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      pkg/tsdb/stackdriver/annotation_query.go

+ 1 - 2
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)