Commit 6488ccd1 by Mitsuhiro Tanda

return empty array for no datapoints

parent 5e11f1a2
......@@ -316,6 +316,7 @@ func parseResponse(resp *cloudwatch.GetMetricStatisticsOutput, query *CloudWatch
for _, s := range append(query.Statistics, query.ExtendedStatistics...) {
series := tsdb.TimeSeries{
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