-
Task
-
Resolution: Done
-
Major
-
None
-
None
-
False
-
-
False
-
None
-
Unset
-
None
-
-
Currently, each ClowdApp with an otel-collector sidecar requires its own dedicated ConfigMap with a hardcoded naming pattern "<appName>-otel-config". This creates configuration duplication and management overhead when multiple services need the same OpenTelemetry configuration.
In our use case (SWATCH team), we have multiple services in the rhsm-subscriptions environment that all need the same OpenTelemetry configuration:
- `swatch-producer-aws`
- `swatch-producer-azure`
- `swatch-contracts`
- `swatch-billable-usage`
- `swatch-metrics`
- ...
Currently, we must create and maintain 5 separate ConfigMaps with identical content:
- swatch-producer-aws-otel-config
- swatch-producer-azure-otel-config
- swatch-contracts-otel-config
- swatch-billable-usage-otel-config
- swatch-metrics-otel-config
Proposed Solution
1. Extend ClowdEnvironment Configuration
apiVersion: cloud.redhat.com/v1alpha1 kind: ClowdEnvironment metadata: name: env-rhsm spec: providers: sidecars: otelCollector: enabled: true image: "custom-otel-image:latest" configMap: "shared-otel-config" # NEW: Optional shared ConfigMap name
And always use the "shared-otel-config" config map if sets. Otherwise, keep using the clowder app name based resolution strategy as it does today.
Proposed solution
- is related to
-
RHCLOUD-35864 Add support for otel-config for otel-collector sidecar
-
- Closed
-