Closed as not planned
Closed as not planned
Description
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
- Set up the prometheus receiver with the target allocator enabled. In my case, I used the opentelemetry operator.
- 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