CloudWatch: Should use the HTTP client provider to create HTTP client for the AWS SDK

0
open
marefr
marefr
Posted 2 months ago

CloudWatch: Should use the HTTP client provider to create HTTP client for the AWS SDK #39089

Seems like the default HTTP client (http.DefaultClient) are being used for all the different cloudwatch clients. We should change this so that the clients would use an HTTP client coming from HTTP client provider. With this existing timeouts and limits for data sources would apply for CloudWatch as well.

Ref #35796

Clients: https://github.com/grafana/grafana/blob/e68bf87de10a47eaf456848e81eb3d64f6f8159f/pkg/tsdb/cloudwatch/cloudwatch.go#L380-L416