惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
I
InfoQ
Engineering at Meta
Engineering at Meta
D
DataBreaches.Net
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Recent Announcements
Recent Announcements
GbyAI
GbyAI
爱范儿
爱范儿
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
美团技术团队
罗磊的独立博客
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
M
MIT News - Artificial intelligence
D
Docker
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs
博客园 - 叶小钗

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
chore(docker): expose diagnostics observability settings ...
vincentkoc · 2026-04-26 · via Recent Commits to openclaw:main

@@ -122,16 +122,54 @@ and setup-time config writes through `openclaw-gateway` with

122122123123

The setup script accepts these optional environment variables:

124124125-

| Variable | Purpose |

126-

| ------------------------------ | --------------------------------------------------------------- |

127-

| `OPENCLAW_IMAGE` | Use a remote image instead of building locally |

128-

| `OPENCLAW_DOCKER_APT_PACKAGES` | Install extra apt packages during build (space-separated) |

129-

| `OPENCLAW_EXTENSIONS` | Pre-install plugin deps at build time (space-separated names) |

130-

| `OPENCLAW_EXTRA_MOUNTS` | Extra host bind mounts (comma-separated `source:target[:opts]`) |

131-

| `OPENCLAW_HOME_VOLUME` | Persist `/home/node` in a named Docker volume |

132-

| `OPENCLAW_SANDBOX` | Opt in to sandbox bootstrap (`1`, `true`, `yes`, `on`) |

133-

| `OPENCLAW_DOCKER_SOCKET` | Override Docker socket path |

134-

| `OPENCLAW_DISABLE_BONJOUR` | Disable Bonjour/mDNS advertising (defaults to `1` for Docker) |

125+

| Variable | Purpose |

126+

| ------------------------------- | --------------------------------------------------------------- |

127+

| `OPENCLAW_IMAGE` | Use a remote image instead of building locally |

128+

| `OPENCLAW_DOCKER_APT_PACKAGES` | Install extra apt packages during build (space-separated) |

129+

| `OPENCLAW_EXTENSIONS` | Pre-install plugin deps at build time (space-separated names) |

130+

| `OPENCLAW_EXTRA_MOUNTS` | Extra host bind mounts (comma-separated `source:target[:opts]`) |

131+

| `OPENCLAW_HOME_VOLUME` | Persist `/home/node` in a named Docker volume |

132+

| `OPENCLAW_SANDBOX` | Opt in to sandbox bootstrap (`1`, `true`, `yes`, `on`) |

133+

| `OPENCLAW_DOCKER_SOCKET` | Override Docker socket path |

134+

| `OPENCLAW_DISABLE_BONJOUR` | Disable Bonjour/mDNS advertising (defaults to `1` for Docker) |

135+

| `OTEL_EXPORTER_OTLP_ENDPOINT` | Shared OTLP/HTTP collector endpoint for OpenTelemetry export |

136+

| `OTEL_EXPORTER_OTLP_*_ENDPOINT` | Signal-specific OTLP endpoints for traces, metrics, or logs |

137+

| `OTEL_EXPORTER_OTLP_PROTOCOL` | OTLP protocol override. Only `http/protobuf` is supported today |

138+

| `OTEL_SERVICE_NAME` | Service name used for OpenTelemetry resources |

139+

| `OTEL_SEMCONV_STABILITY_OPT_IN` | Opt in to latest experimental GenAI semantic attributes |

140+

| `OPENCLAW_OTEL_PRELOADED` | Skip starting a second OpenTelemetry SDK when one is preloaded |

141+142+

### Observability

143+144+

OpenTelemetry export is outbound from the Gateway container to your OTLP

145+

collector. It does not require a published Docker port. If you build the image

146+

locally and want the bundled OpenTelemetry exporter available inside the image,

147+

include its runtime dependencies:

148+149+

```bash

150+

export OPENCLAW_EXTENSIONS="diagnostics-otel"

151+

export OTEL_EXPORTER_OTLP_ENDPOINT="http://otel-collector:4318"

152+

export OTEL_SERVICE_NAME="openclaw-gateway"

153+

./scripts/docker/setup.sh

154+

```

155+156+

The official OpenClaw Docker release image includes `diagnostics-otel`

157+

dependencies. To enable export, allow and enable the `diagnostics-otel` plugin

158+

in config, then set `diagnostics.otel.enabled=true` or use the config example in

159+

[OpenTelemetry export](/gateway/opentelemetry). Collector auth headers are

160+

configured through `diagnostics.otel.headers`, not through Docker environment

161+

variables.

162+163+

Prometheus metrics use the already-published Gateway port. Enable the

164+

`diagnostics-prometheus` plugin, then scrape:

165+166+

```text

167+

http://<gateway-host>:18789/api/diagnostics/prometheus

168+

```

169+170+

The route is protected by Gateway authentication. Do not expose a separate

171+

public `/metrics` port or unauthenticated reverse-proxy path. See

172+

[Prometheus metrics](/gateway/prometheus).

135173136174

### Health checks

137175