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

pull/30311/head
Alexander Zobnin 4 years ago committed by GitHub
parent 3d41267fc4
commit d6b468187e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      pkg/models/datasource.go
  2. 2
      pkg/models/sigv4.go

@ -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 (

@ -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"

Loading…
Cancel
Save