opentelemetry-operator
opentelemetry-operator copied to clipboard
[target-allocator] `ServiceMonitor` must rely on an empty job
At present, when we use servicemonitor, we must set an empty job as a placeholder for config replace eg:
receivers:
prometheus:
config:
scrape_configs:
- job_name: serviceMonitor/vke-system/harbor-server/0
servicemonitor is dynamically created, so there is no way to preset an empty job. Can we consider generating these scrape job configurations automatically?
Is it possible to automatically generate this type of job without manual pre-creation
I believe this will be resolved by this PR which allows for dynamic jobs to be found by the prometheus receiver
Solved in Release v0.61.0