Skip to content

[Observability 5/10] Add OTEL config to Kubernetes manifests #312

Description

@concaf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestobservabilityMetrics, tracing, alerting, and monitoring

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions