Makes sure to set the SigV4 service namespace for Elasticsearch and Prometheus.
Fixes #38440
(cherry picked from commit 45a844e77e)
This commit is contained in:
1 parent
6678215a1c
commit
c857fb0d49
1 file changed
+5
@@ -88,6 +88,11 @@ func newInstanceSettings() datasource.InstanceFactoryFunc {
|
||||
return nil, fmt.Errorf("error getting http options: %w", err)
|
||||
}
|
||||
|
||||
// Set SigV4 service namespace
|
||||
if httpCliOpts.SigV4 != nil {
|
||||
httpCliOpts.SigV4.Service = "es"
|
||||
}
|
||||
|
||||
version, err := coerceVersion(jsonData["esVersion"])
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user