mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix conflict
This commit is contained in:
parent
fa074249e4
commit
36a537a3ce
@ -188,7 +188,7 @@ func (e *CloudWatchExecutor) executeQuery(ctx context.Context, parameters *simpl
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
metrics.M_Aws_CloudWatch_GetMetricStatistics.Inc(1)
|
metrics.M_Aws_CloudWatch_GetMetricStatistics.Inc()
|
||||||
|
|
||||||
queryRes, err := parseResponse(resp, query)
|
queryRes, err := parseResponse(resp, query)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -342,7 +342,7 @@ func getAllMetrics(cwData *cwapi.DatasourceInfo) (cloudwatch.ListMetricsOutput,
|
|||||||
var resp cloudwatch.ListMetricsOutput
|
var resp cloudwatch.ListMetricsOutput
|
||||||
err = svc.ListMetricsPages(params,
|
err = svc.ListMetricsPages(params,
|
||||||
func(page *cloudwatch.ListMetricsOutput, lastPage bool) bool {
|
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")
|
metrics, _ := awsutil.ValuesAtPath(page, "Metrics")
|
||||||
for _, metric := range metrics {
|
for _, metric := range metrics {
|
||||||
resp.Metrics = append(resp.Metrics, metric.(*cloudwatch.Metric))
|
resp.Metrics = append(resp.Metrics, metric.(*cloudwatch.Metric))
|
||||||
|
Loading…
Reference in New Issue
Block a user