Kaynağa Gözat

remove offset for startTime

Mitsuhiro Tanda 8 yıl önce
ebeveyn
işleme
c6607f3fa7
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      pkg/tsdb/cloudwatch/cloudwatch.go

+ 1 - 1
pkg/tsdb/cloudwatch/cloudwatch.go

@@ -156,7 +156,7 @@ func (e *CloudWatchExecutor) executeQuery(ctx context.Context, model *tsdb.Query
 		MetricName: aws.String(query.MetricName),
 		Dimensions: query.Dimensions,
 		Period:     aws.Int64(int64(query.Period)),
-		StartTime:  aws.Time(startTime.Add(-time.Minute * 15)),
+		StartTime:  aws.Time(startTime),
 		EndTime:    aws.Time(endTime),
 	}
 	if len(query.Statistics) > 0 {