From c6607f3fa78782871805230122d20292f4e6b7dc Mon Sep 17 00:00:00 2001 From: Mitsuhiro Tanda Date: Fri, 1 Sep 2017 21:34:50 +0900 Subject: [PATCH] remove offset for startTime --- pkg/tsdb/cloudwatch/cloudwatch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tsdb/cloudwatch/cloudwatch.go b/pkg/tsdb/cloudwatch/cloudwatch.go index 445ec94aef2..58c14685d96 100644 --- a/pkg/tsdb/cloudwatch/cloudwatch.go +++ b/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 {