From dcb5ea58cec6cae9f948f9f0c0d262f4bfd55fba Mon Sep 17 00:00:00 2001 From: Mitsuhiro Tanda Date: Thu, 13 Apr 2017 19:22:00 +0900 Subject: [PATCH] count up metrics --- pkg/tsdb/cloudwatch/cloudwatch.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/tsdb/cloudwatch/cloudwatch.go b/pkg/tsdb/cloudwatch/cloudwatch.go index 19a5f19ef3b..445ec94aef2 100644 --- a/pkg/tsdb/cloudwatch/cloudwatch.go +++ b/pkg/tsdb/cloudwatch/cloudwatch.go @@ -20,6 +20,7 @@ import ( cwapi "github.com/grafana/grafana/pkg/api/cloudwatch" "github.com/grafana/grafana/pkg/components/null" "github.com/grafana/grafana/pkg/components/simplejson" + "github.com/grafana/grafana/pkg/metrics" ) type CloudWatchExecutor struct { @@ -169,6 +170,7 @@ func (e *CloudWatchExecutor) executeQuery(ctx context.Context, model *tsdb.Query if err != nil { return nil, err } + metrics.M_Aws_CloudWatch_GetMetricStatistics.Inc(1) queryRes, err := parseResponse(resp, query) if err != nil {