Skip to content

[receivers/prometheusreceiver] cannot configure http client used by target allocator generated scrape targets  #18054

Closed as not planned
@sfc-gh-rscott

Description

@sfc-gh-rscott

Component(s)

receiver/prometheus

What happened?

Description

The target allocator component of the prometheus receiver supports configuring the http client used to retrieve scrape configs from the target allocator, but it does not support configuring the http clients used to perform the actual scrapes.

The configuration from the http_sd_config is used when communicating with the target allocator, but is not propagated to the generated scrape targets.

Steps to Reproduce

  1. Set up the prometheus receiver with the target allocator enabled. In my case, I used the opentelemetry operator.
  2. Set up a service to scrape in such a way that configuration of the http client is required to perform the scrape. This could be something like specifying a proxy URL or requiring custom TLS certs.

Expected Result

The http client config can be specified so that the target can be scraped.

Actual Result

There is no way to specify the http client config and the target cannot be scraped.

Collector version

v0.67.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions