Component(s)
No response
What happened?
Description
When keeping or dropping labels based on seeded labels, target allocator may do the wrong thing. For example:
scrape_configs:
# keep on `job`: Prometheus keeps (job is seeded), allocator drops -> silent loss.
- job_name: gap-keep-on-job
static_configs:
- targets: ['10.20.0.1:9100']
relabel_configs:
- {source_labels: [job], regex: 'gap-keep-on-job', action: keep}
Same is true for other seeded labels like __scheme__.
Steps to Reproduce
See: #5244.
Expected Result
Target Allocator's keep/drop behavior should be consistent with Prometheus.
Actual Result
The target mentioned above is dropped by target allocator but kept by prometheus.
Kubernetes Version
all supported
Operator version
main
Collector version
v0.153.0
Environment information
Log output
Additional context
No response
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.
Component(s)
No response
What happened?
Description
When keeping or dropping labels based on seeded labels, target allocator may do the wrong thing. For example:
Same is true for other seeded labels like
__scheme__.Steps to Reproduce
See: #5244.
Expected Result
Target Allocator's keep/drop behavior should be consistent with Prometheus.
Actual Result
The target mentioned above is dropped by target allocator but kept by prometheus.
Kubernetes Version
all supported
Operator version
main
Collector version
v0.153.0
Environment information
Log output
Additional context
No response
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding
+1orme too, to help us triage it. Learn more here.