Context
Add the environment variables needed for OTEL metrics export to the MCP server Kubernetes deployment manifests.
Scope
config/mcp/configmap.yaml
Add entries:
ENABLE_OTEL: "true"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector:4311"
Note: The OTEL Collector in the cluster uses port 4311 (not the standard 4317), per platform-config/config/otel-collector/deployments/base/021-otel-collector-deployment.yaml.
No deployment.yaml changes needed
The deployment already uses envFrom: configMapRef, so any key added to the ConfigMap is automatically injected.
Verification
make generate-mcp-manifests produces valid output
kubectl apply --dry-run=client -f mcp-server-manifest.yaml succeeds
Depends on
Note
The OTEL_EXPORTER_OTLP_ENDPOINT value may need to be adjusted per namespace. The exact service name of the OTEL Collector should be confirmed from the cluster.
Context
Add the environment variables needed for OTEL metrics export to the MCP server Kubernetes deployment manifests.
Scope
config/mcp/configmap.yamlAdd entries:
Note: The OTEL Collector in the cluster uses port 4311 (not the standard 4317), per
platform-config/config/otel-collector/deployments/base/021-otel-collector-deployment.yaml.No deployment.yaml changes needed
The deployment already uses
envFrom: configMapRef, so any key added to the ConfigMap is automatically injected.Verification
make generate-mcp-manifestsproduces valid outputkubectl apply --dry-run=client -f mcp-server-manifest.yamlsucceedsDepends on
Note
The
OTEL_EXPORTER_OTLP_ENDPOINTvalue may need to be adjusted per namespace. The exact service name of the OTEL Collector should be confirmed from the cluster.