|
|
@@ -342,7 +342,7 @@ func getAllMetrics(cwData *cwapi.DatasourceInfo) (cloudwatch.ListMetricsOutput,
|
|
|
var resp cloudwatch.ListMetricsOutput
|
|
|
err = svc.ListMetricsPages(params,
|
|
|
func(page *cloudwatch.ListMetricsOutput, lastPage bool) bool {
|
|
|
- metrics.M_Aws_CloudWatch_ListMetrics.Inc(1)
|
|
|
+ metrics.M_Aws_CloudWatch_ListMetrics.Inc()
|
|
|
metrics, _ := awsutil.ValuesAtPath(page, "Metrics")
|
|
|
for _, metric := range metrics {
|
|
|
resp.Metrics = append(resp.Metrics, metric.(*cloudwatch.Metric))
|