Commit dcb5ea58 by Mitsuhiro Tanda

count up metrics

parent 39607d09
...@@ -20,6 +20,7 @@ import ( ...@@ -20,6 +20,7 @@ import (
cwapi "github.com/grafana/grafana/pkg/api/cloudwatch" cwapi "github.com/grafana/grafana/pkg/api/cloudwatch"
"github.com/grafana/grafana/pkg/components/null" "github.com/grafana/grafana/pkg/components/null"
"github.com/grafana/grafana/pkg/components/simplejson" "github.com/grafana/grafana/pkg/components/simplejson"
"github.com/grafana/grafana/pkg/metrics"
) )
type CloudWatchExecutor struct { type CloudWatchExecutor struct {
...@@ -169,6 +170,7 @@ func (e *CloudWatchExecutor) executeQuery(ctx context.Context, model *tsdb.Query ...@@ -169,6 +170,7 @@ func (e *CloudWatchExecutor) executeQuery(ctx context.Context, model *tsdb.Query
if err != nil { if err != nil {
return nil, err return nil, err
} }
metrics.M_Aws_CloudWatch_GetMetricStatistics.Inc(1)
queryRes, err := parseResponse(resp, query) queryRes, err := parseResponse(resp, query)
if err != nil { if err != nil {
......
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