-
Notifications
You must be signed in to change notification settings - Fork 0
docs(metrics): openclaw_* メトリクス再検証 (PR #7123 反映後) #484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
boxp
wants to merge
1
commit into
main
Choose a base branch
from
feat/T-20260225-009-metrics-reverification
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # T-20260225-009: OpenClaw メトリクス再検証結果 | ||
|
|
||
| ## 概要 | ||
|
|
||
| PR #7123(`boxp/arch`: OTel 依存追加)反映後に `openclaw_*` メトリクスの取得状況を再検証した。 | ||
|
|
||
| ## 検証結果サマリ | ||
|
|
||
| | 項目 | 前回 (2026-02-21) | 今回 (2026-02-25) | 変化 | | ||
| |------|------------------|------------------|------| | ||
| | `@opentelemetry/api` エラー | 発生 | **消失** | 改善 | | ||
| | プラグインロード失敗ログ | 発生 | **消失** | 変化 | | ||
| | `openclaw_*` メトリクス | 0/18 | **0/18** | 変化なし | | ||
| | `target_info` (OTel自動生成) | なし | なし | 変化なし | | ||
|
|
||
| **結論: PR #7123 により `@opentelemetry/api` のモジュール解決エラーは解消されたが、メトリクスは依然として Prometheus に到達していない(0/18)。** | ||
|
|
||
| ## 新たな根本原因仮説 | ||
|
|
||
| 1. **SDK 内部初期化失敗(最有力)**: OTel パッケージが `/opt/otel-deps/node_modules` にインストールされ `NODE_PATH` で参照可能になったが、SDK 初期化時にバージョン競合や内部エラーで静かに失敗 | ||
| 2. **OTLP エクスポーター送信失敗**: OTel SDK のデフォルト動作で export エラーが swallow されている | ||
| 3. **OpenClaw v2026.2.22 でのプラグインシステム変更**: `[plugins]` ログが一切なく、プラグインロード方式が変更された可能性 | ||
|
|
||
| ## 推奨アクション | ||
|
|
||
| 1. **即時**: ConfigMap に `OTEL_LOG_LEVEL=debug` を追加して OTel 内部エラーを特定 | ||
| 2. **短期**: OpenClaw v2026.2.23 へアップデート(changelog 確認後) | ||
| 3. **代替**: `/app/node_modules` 直接インストール方式への変更を検討 | ||
|
|
||
| ## 詳細 | ||
|
|
||
| 検証の完全な結果は以下を参照: | ||
| - `docs/project_docs/openclaw-app-metrics-dashboard/metrics-verification.md` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OTEL_LOG_LEVELを「ConfigMap に追加」するだけでは反映されません。argoproj/openclaw/deployment-openclaw.yamlでは openclaw コンテナの環境変数はenvで個別定義されており(104-181行)、openclaw-configは 395-397行でopenclaw.jsonをボリュームとして渡しているだけでenvFrom/configMapKeyRefがないため、ここにキーを増やしても Pod の環境変数は変化しません。この手順のままだと再デプロイ後も OTel デバッグログが有効化されず、原因調査が空振りになります。Useful? React with 👍 / 👎.