diff --git a/metricproviders/prometheus/prometheus.go b/metricproviders/prometheus/prometheus.go index 45a657b9e4..66b621183e 100644 --- a/metricproviders/prometheus/prometheus.go +++ b/metricproviders/prometheus/prometheus.go @@ -171,9 +171,9 @@ func NewPrometheusAPI(metric v1alpha1.Metric) (v1.API, error) { } //Check if using Amazon Managed Prometheus if true build sigv4 client if strings.Contains(metric.Provider.Prometheus.Address, "aps-workspaces") { - var cfg *sigv4.SigV4Config + var cfg sigv4.SigV4Config var next http.RoundTripper - sigv4RoundTripper, err := sigv4.NewSigV4RoundTripper(cfg, next) + sigv4RoundTripper, err := sigv4.NewSigV4RoundTripper(&cfg, next) if err != nil { log.Errorf("Error creating SigV4 RoundTripper: %v", err) return nil, err