[prometheusreceiver] allow to pull Prometheus jobs from /job
endpoint of the OpenTelemetryOperator-TargetAllocator
#7944
Labels
/job
endpoint of the OpenTelemetryOperator-TargetAllocator
#7944
Is your feature request related to a problem? Please describe.
The TargetAllocator is component of a Collector deployment which allows to shard Prometheus targets on multiple Collector instances.
To allow the Collector to dynamically discover new jobs the
/jobs
endpoint of the TargetAllocator should be used.Describe the solution you'd like
With this configuration
prometheusreceiver
will scrape the/job
endpoint every 30s to discover jobs.These jobs will be then used to generate a scrape configuration with a HTTP_SD job per returned job.
Therefore if
/job
returns following JSON:This scrape config will be generated and then applied:
Describe alternatives you've considered
Some alternatives have been considered, these can be found in this issue: open-telemetry/opentelemetry-operator#713
The text was updated successfully, but these errors were encountered: