opentelemetry-operator icon indicating copy to clipboard operation
opentelemetry-operator copied to clipboard

[target-allocator] `ServiceMonitor` must rely on an empty job

Open CoderPoet opened this issue 3 years ago • 2 comments

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
image

servicemonitor is dynamically created, so there is no way to preset an empty job. Can we consider generating these scrape job configurations automatically?

CoderPoet avatar Jul 06 '22 16:07 CoderPoet

Is it possible to automatically generate this type of job without manual pre-creation

CoderPoet avatar Jul 13 '22 03:07 CoderPoet

I believe this will be resolved by this PR which allows for dynamic jobs to be found by the prometheus receiver

jaronoff97 avatar Jul 27 '22 18:07 jaronoff97

Solved in Release v0.61.0

secustor avatar Nov 03 '22 10:11 secustor