diff --git a/receiver/awscontainerinsightreceiver/internal/gpu/dcgmscraper_config.go b/receiver/awscontainerinsightreceiver/internal/gpu/dcgmscraper_config.go index 4d11945d0db3..40e74fcfce7d 100644 --- a/receiver/awscontainerinsightreceiver/internal/gpu/dcgmscraper_config.go +++ b/receiver/awscontainerinsightreceiver/internal/gpu/dcgmscraper_config.go @@ -38,11 +38,12 @@ func GetScraperConfig(hostInfoProvider hostInfoProvider) *config.ScrapeConfig { InsecureSkipVerify: false, }, }, - ScrapeInterval: model.Duration(collectionInterval), - ScrapeTimeout: model.Duration(collectionInterval), - JobName: jobName, - Scheme: "https", - MetricsPath: scraperMetricsPath, + ScrapeInterval: model.Duration(collectionInterval), + ScrapeTimeout: model.Duration(collectionInterval), + ScrapeProtocols: config.DefaultScrapeProtocols, + JobName: jobName, + Scheme: "https", + MetricsPath: scraperMetricsPath, ServiceDiscoveryConfigs: discovery.Configs{ &kubernetes.SDConfig{ Role: kubernetes.RoleService, diff --git a/receiver/awscontainerinsightreceiver/internal/prometheusscraper/simple_prometheus_scraper.go b/receiver/awscontainerinsightreceiver/internal/prometheusscraper/simple_prometheus_scraper.go index 2f7be0071adf..ff33bb219d59 100644 --- a/receiver/awscontainerinsightreceiver/internal/prometheusscraper/simple_prometheus_scraper.go +++ b/receiver/awscontainerinsightreceiver/internal/prometheusscraper/simple_prometheus_scraper.go @@ -61,6 +61,7 @@ func NewSimplePrometheusScraper(opts SimplePrometheusScraperOpts) (*SimplePromet } params := receiver.CreateSettings{ + ID: component.MustNewID(opts.ScraperConfigs.JobName), TelemetrySettings: opts.TelemetrySettings, }