Commit 6a485f30 by Carl Bergquist Committed by GitHub

Merge pull request #9856 from mtanda/cw_null_for_no_datapoint

(cloudwatch) return empty array for no datapoints
parents 5e11f1a2 6488ccd1
......@@ -315,7 +315,8 @@ func parseResponse(resp *cloudwatch.GetMetricStatisticsOutput, query *CloudWatch
var value float64
for _, s := range append(query.Statistics, query.ExtendedStatistics...) {
series := tsdb.TimeSeries{
Tags: map[string]string{},
Tags: map[string]string{},
Points: make([]tsdb.TimePoint, 0),
}
for _, d := range query.Dimensions {
series.Tags[*d.Name] = *d.Value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment