Cloudwatch: Use the metric map from grafana-aws-sdk (#88733)

This commit is contained in:
Isabella Siu
2024-06-06 21:25:54 +03:00
committed by GitHub
parent 79f9d529d3
commit cd15e9732d
12 changed files with 134 additions and 753 deletions
@@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"
"github.com/grafana/grafana/pkg/tsdb/cloudwatch/constants"
"github.com/grafana/grafana-aws-sdk/pkg/cloudWatchConsts"
)
func parseDimensionFilter(dimensionFilter string) ([]*Dimension, error) {
@@ -46,7 +46,7 @@ func parseDimensionFilter(dimensionFilter string) ([]*Dimension, error) {
}
func isCustomNamespace(namespace string) bool {
if _, ok := constants.NamespaceMetricsMap[namespace]; ok {
if _, ok := cloudWatchConsts.NamespaceMetricsMap[namespace]; ok {
return false
}
return true