This issue extends the Debezium Operator to configure OpenTelemetry Java Agent on Debezium Server instances. The operator will inject necessary environment variables and resource attributes, allowing users to enable OpenTelemetry-based monitoring through the DebeziumServer custom resource. This provides an alternative to the existing JMX Exporter configuration.
Tasks
This issue extends the Debezium Operator to configure OpenTelemetry Java Agent on Debezium Server instances. The operator will inject necessary environment variables and resource attributes, allowing users to enable OpenTelemetry-based monitoring through the
DebeziumServercustom resource. This provides an alternative to the existing JMX Exporter configuration.Tasks
Extend DebeziumServer CRD schema with OpenTelemetry field
spec.runtime.metrics.opentelemetryfield to CRDenabled(boolean),collector.endpoint(string)Implement OpenTelemetry Agent configuration logic
opentelemetryconfigurationInject OpenTelemetry environment variables
OTEL_AGENT_ENABLED=truewhen OpenTelemetry is enabledOTEL_EXPORTER_OTLP_ENDPOINTfrom spec or use defaultOTEL_SERVICE_NAMEto the pipeline IDOTEL_METRICS_EXPORTER=otlpConfigure OpenTelemetry resource attributes
service.nameresource attribute with pipeline ID valuedebezium.connector.typeresource attribute with connector type (postgresql, mysql, etc.)deployment.environmentor other contextual attributesOTEL_RESOURCE_ATTRIBUTESfor configuration