Skip to content

Commit ba0541d

Browse files
committed
fix: add telemetry env vars to all docker-compose variants
Added MCP_TELEMETRY_DISABLED, MCP_TELEMETRY_OPT_IN, TELEMETRY_ENDPOINT, and TELEMETRY_DEBUG to docker-compose.yml and docker-compose.podman.yml. Fixed docker-compose.prebuilt.yml: renamed MCP_TELEMETRY_DEBUG to TELEMETRY_DEBUG to match the Pydantic field name in config.py.
1 parent f6c77e8 commit ba0541d

3 files changed

Lines changed: 21 additions & 3 deletions

File tree

docker-compose.podman.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@ services:
110110
- REGISTRY_STATIC_TOKEN_AUTH_ENABLED=${REGISTRY_STATIC_TOKEN_AUTH_ENABLED:-false}
111111
- REGISTRY_API_TOKEN=${REGISTRY_API_TOKEN:-}
112112
- MAX_TOKENS_PER_USER_PER_HOUR=${MAX_TOKENS_PER_USER_PER_HOUR:-100}
113+
# Telemetry Configuration
114+
# Opt-out: set MCP_TELEMETRY_DISABLED=1 to disable all telemetry
115+
# Opt-in: set MCP_TELEMETRY_OPT_IN=1 for daily heartbeat with aggregate counts
116+
# Endpoint: set TELEMETRY_ENDPOINT=<url> to use a self-hosted collector
117+
# Debug: set TELEMETRY_DEBUG=true to log payloads without sending
118+
- MCP_TELEMETRY_DISABLED=${MCP_TELEMETRY_DISABLED:-}
119+
- MCP_TELEMETRY_OPT_IN=${MCP_TELEMETRY_OPT_IN:-}
120+
- TELEMETRY_ENDPOINT=${TELEMETRY_ENDPOINT:-}
121+
- TELEMETRY_DEBUG=${TELEMETRY_DEBUG:-}
113122
ports:
114123
- "80:8080" # Map host 80 to container 8080 (non-root nginx)
115124
- "443:8443" # Map host 443 to container 8443 (non-root nginx)

docker-compose.prebuilt.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ services:
116116
# Telemetry Configuration
117117
# Opt-out: set MCP_TELEMETRY_DISABLED=1 to disable all telemetry
118118
# Opt-in: set MCP_TELEMETRY_OPT_IN=1 for daily heartbeat with aggregate counts
119-
# Endpoint: set TELEMETRY_ENDPOINT=<url> to use a self-hosted collector
120-
# Debug: set MCP_TELEMETRY_DEBUG=1 to log payloads without sending
119+
# Endpoint: set TELEMETRY_ENDPOINT=<url> to use a self-hosted collector
120+
# Debug: set TELEMETRY_DEBUG=true to log payloads without sending
121121
- MCP_TELEMETRY_DISABLED=${MCP_TELEMETRY_DISABLED:-}
122122
- MCP_TELEMETRY_OPT_IN=${MCP_TELEMETRY_OPT_IN:-}
123123
- TELEMETRY_ENDPOINT=${TELEMETRY_ENDPOINT:-}
124-
- MCP_TELEMETRY_DEBUG=${MCP_TELEMETRY_DEBUG:-}
124+
- TELEMETRY_DEBUG=${TELEMETRY_DEBUG:-}
125125
ports:
126126
- "80:8080" # Map host 80 to container 8080 (non-root nginx)
127127
- "443:8443" # Map host 443 to container 8443 (non-root nginx)

docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,15 @@ services:
192192
- OTEL_OTLP_ENDPOINT=${OTEL_OTLP_ENDPOINT:-}
193193
- OTEL_OTLP_EXPORT_INTERVAL_MS=${OTEL_OTLP_EXPORT_INTERVAL_MS:-30000}
194194
- OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=${OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:-cumulative}
195+
# Telemetry Configuration
196+
# Opt-out: set MCP_TELEMETRY_DISABLED=1 to disable all telemetry
197+
# Opt-in: set MCP_TELEMETRY_OPT_IN=1 for daily heartbeat with aggregate counts
198+
# Endpoint: set TELEMETRY_ENDPOINT=<url> to use a self-hosted collector
199+
# Debug: set TELEMETRY_DEBUG=true to log payloads without sending
200+
- MCP_TELEMETRY_DISABLED=${MCP_TELEMETRY_DISABLED:-}
201+
- MCP_TELEMETRY_OPT_IN=${MCP_TELEMETRY_OPT_IN:-}
202+
- TELEMETRY_ENDPOINT=${TELEMETRY_ENDPOINT:-}
203+
- TELEMETRY_DEBUG=${TELEMETRY_DEBUG:-}
195204
ports:
196205
- "80:8080" # Map host 80 to container 8080 (non-root nginx)
197206
- "443:8443" # Map host 443 to container 8443 (non-root nginx)

0 commit comments

Comments
 (0)