Plugins: Add Open Distro to the list of data sources supported by sigv4 (#30308)

This commit is contained in:
Alexander Zobnin
2021-01-15 17:01:29 +03:00
committed by GitHub
parent 3d41267fc4
commit d6b468187e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -27,6 +27,7 @@ const (
DS_CLOUD_MONITORING = "stackdriver"
DS_AZURE_MONITOR = "grafana-azure-monitor-datasource"
DS_LOKI = "loki"
DS_ES_OPEN_DISTRO = "grafana-es-open-distro-datasource"
)
var (
+1 -1
View File
@@ -148,7 +148,7 @@ func replaceBody(req *http.Request) ([]byte, error) {
func awsServiceNamespace(dsType string) string {
switch dsType {
case DS_ES:
case DS_ES, DS_ES_OPEN_DISTRO:
return "es"
case DS_PROMETHEUS:
return "aps"