Open olehrgf opened 10 months ago
Are there any logs from the operator? I'm not positive why you would want a scrape config with no *_config
? I'm not positive prometheus would accept that.
@jaronoff97 There is nothing special in the logs.
I'm not positive why you would want a scrape config with no *_config?
I'm expecting http_sd_configs
to be added automatically by the operator when the feature flag is enabled and the target allocator section is presented in the configuration as it is described in the docs.
I might be wrong here but from my understading the http_sd_configs
is not necessary on the collector since it natively support target-allocator as describe in the upstream docs.
What docs are you referring to?
Component(s)
operator
What happened?
Description
When the
EnableTargetAllocatorRewrite
feature flag is enabled, the target allocator used collector's config map has a missing http_sd_configs configuration.Steps to Reproduce
Otel collector configuration:
Operator installed with
+operator.collector.rewritetargetallocator
feature gate.Expected Result
Actual Result
Kubernetes Version
1.23.0
Operator version
v0.79.0
Collector version
v0.79.0
Environment information
No response
Log output
No response
Additional context
scrape_configs
removed during target allocator rewrite internal/manifests/targetallocator/adapters/config_to_prom_config.goand then is not added internal/manifests/targetallocator/adapters/config_to_prom_config.go