mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
AWS: add OpenSearch to AWS services (#40290)
This commit is contained in:
parent
5a56f86a47
commit
24af3593a2
@ -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 (
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user