open-telemetry / wg-prometheus

Workgroup for building Prometheus-OTLP interoperability for the OTEL Collector and Prometheus related discussions.
Apache License 2.0
41 stars 6 forks source link

Prometheus Service Discovery Configuration Interception #32

Closed Aneurysm9 closed 2 years ago

Aneurysm9 commented 3 years ago

To enable the OTel Operator to perform Prometheus scrape target identification for a set of Collector instances in support of #6 we need to be able to identify and extract all *_sd_config and relabel_config entries in each scrape_config entry in the Prometheus receiver configuration. All *_sd_config entries should be replaced by a single file_sd_config entry referencing a file that can be updated by the Collector Prometheus receiver's target update mechanism (to be constructed) prior to the configuration being used to create a ConfigMap for Collector instances. The extracted configurations should be preserved for use by the target discovery and distribution mechanism to be built in the Operator.

This issue should be used to track the design of the SD configuration interception mechanism in the OTel Operator and to aggregate any other issues or PRs created during implementation.

alolita commented 3 years ago

This is a change that needs to be made in the Operator after #33 is completed.

alolita commented 3 years ago

PR https://github.com/open-telemetry/opentelemetry-operator/pull/389 in the Operator repo is in review currently.

alolita commented 3 years ago

@Aneurysm9 is there anything else that needs to be done. The previous PRs have been merged.

Aneurysm9 commented 2 years ago

This has been completed with the Operator's target allocation capability.