[release-11.6.6] Datasources: Backport aws-sdk-go-v2 update and subsequent fixes (#111319)
* CloudWatch: Backport aws-sdk-go-v2 update from external plugin (#107136) (cherry picked from commita18ea34688) * Datasources: Update grafana-aws-sdk for new sigv4 middleware and aws-sdk-go v1 removal (#107522) (cherry picked from commit66d9a33cc9) * CloudWatch: Fix proxy transport issue (#107807) (cherry picked from commitc3eeb1fcd9) * CloudWatch: Fix http client handling + assume role bug (#107893) (cherry picked from commitf34a9fc0c2) * CloudWatch: Use default region when query region is unset (#109089) (cherry picked from commit5f4097a159) * CloudWatch: Fix handling region for legacy alerts (#109217) (cherry picked from commit2bf9aea8ef) --------- Co-authored-by: Isabella Siu <Isabella.siu@grafana.com>
This commit is contained in:
committed by
GitHub
parent
be76c67911
commit
72f8fdb2d7
@@ -94,7 +94,7 @@ func NewRegistry(store map[string]backendplugin.PluginFactoryFunc) *Registry {
|
||||
}
|
||||
}
|
||||
|
||||
func ProvideCoreRegistry(tracer tracing.Tracer, am *azuremonitor.Service, cw *cloudwatch.CloudWatchService, cm *cloudmonitoring.Service,
|
||||
func ProvideCoreRegistry(tracer tracing.Tracer, am *azuremonitor.Service, cw *cloudwatch.Service, cm *cloudmonitoring.Service,
|
||||
es *elasticsearch.Service, grap *graphite.Service, idb *influxdb.Service, lk *loki.Service, otsdb *opentsdb.Service,
|
||||
pr *prometheus.Service, t *tempo.Service, td *testdatasource.Service, pg *postgres.Service, my *mysql.Service,
|
||||
ms *mssql.Service, graf *grafanads.Service, pyroscope *pyroscope.Service, parca *parca.Service, zipkin *zipkin.Service, jaeger *jaeger.Service) *Registry {
|
||||
@@ -102,7 +102,7 @@ func ProvideCoreRegistry(tracer tracing.Tracer, am *azuremonitor.Service, cw *cl
|
||||
sdktracing.InitDefaultTracer(tracer)
|
||||
|
||||
return NewRegistry(map[string]backendplugin.PluginFactoryFunc{
|
||||
CloudWatch: asBackendPlugin(cw.Executor),
|
||||
CloudWatch: asBackendPlugin(cw),
|
||||
CloudMonitoring: asBackendPlugin(cm),
|
||||
AzureMonitor: asBackendPlugin(am),
|
||||
Elasticsearch: asBackendPlugin(es),
|
||||
@@ -217,7 +217,7 @@ func NewPlugin(pluginID string, cfg *setting.Cfg, httpClientProvider *httpclient
|
||||
jsonData.AliasIDs = append(jsonData.AliasIDs, TestDataAlias)
|
||||
svc = testdatasource.ProvideService()
|
||||
case CloudWatch:
|
||||
svc = cloudwatch.ProvideService(httpClientProvider).Executor
|
||||
svc = cloudwatch.ProvideService()
|
||||
case CloudMonitoring:
|
||||
svc = cloudmonitoring.ProvideService(httpClientProvider)
|
||||
case AzureMonitor:
|
||||
|
||||
Reference in New Issue
Block a user