AWS: add OpenSearch to AWS services (#40290)

This commit is contained in:
Giordano Ricci 2021-10-11 15:53:04 +01:00 committed by GitHub
parent 5a56f86a47
commit 24af3593a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ const (
DS_ACCESS_DIRECT = "direct"
DS_ACCESS_PROXY = "proxy"
DS_ES_OPEN_DISTRO = "grafana-es-open-distro-datasource"
DS_ES_OPENSEARCH = "grafana-opensearch-datasource"
)
var (

View File

@ -363,7 +363,7 @@ func (s *Service) getCustomHeaders(jsonData *simplejson.Json, decryptedValues ma
func awsServiceNamespace(dsType string) string {
switch dsType {
case models.DS_ES, models.DS_ES_OPEN_DISTRO:
case models.DS_ES, models.DS_ES_OPEN_DISTRO, models.DS_ES_OPENSEARCH:
return "es"
case models.DS_PROMETHEUS:
return "aps"