From c052b55ef7dd32432c310184f1b419608658f468 Mon Sep 17 00:00:00 2001 From: Christopher Roberts Date: Mon, 9 Dec 2024 10:17:30 -0600 Subject: [PATCH] update prom config --- receiver/purefareceiver/go.mod | 2 +- receiver/purefareceiver/internal/scraper.go | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/receiver/purefareceiver/go.mod b/receiver/purefareceiver/go.mod index 149b70a7f119..a04e98db10b9 100644 --- a/receiver/purefareceiver/go.mod +++ b/receiver/purefareceiver/go.mod @@ -12,7 +12,7 @@ require ( go.opentelemetry.io/collector/component/componenttest v0.115.0 go.opentelemetry.io/collector/config/configauth v0.115.0 go.opentelemetry.io/collector/config/confighttp v0.115.0 - go.opentelemetry.io/collector/config/configtls v1.20.1 + go.opentelemetry.io/collector/config/configtls v1.21.0 go.opentelemetry.io/collector/confmap v1.21.0 go.opentelemetry.io/collector/consumer v1.21.0 go.opentelemetry.io/collector/consumer/consumertest v0.115.0 diff --git a/receiver/purefareceiver/internal/scraper.go b/receiver/purefareceiver/internal/scraper.go index d133fdd37837..ac205ce4c49b 100644 --- a/receiver/purefareceiver/internal/scraper.go +++ b/receiver/purefareceiver/internal/scraper.go @@ -80,11 +80,8 @@ func (h *scraper) ToPrometheusReceiverConfig(host component.Host, _ receiver.Fac httpConfig.BearerToken = configutil.Secret(bearerToken) httpConfig.TLSConfig = configutil.TLSConfig{ CAFile: h.tlsSettings.CAFile, - CA: h.tlsSettings.CAPem.String(), CertFile: h.tlsSettings.CertFile, - Cert: h.tlsSettings.CertPem.String(), KeyFile: h.tlsSettings.KeyFile, - Key: configutil.Secret(h.tlsSettings.KeyPem), InsecureSkipVerify: h.tlsSettings.InsecureSkipVerify, ServerName: h.tlsSettings.ServerName, }