新建 Agent 监测应用¶
- 进入 Agent 监测 > 应用列表;
- 点击“新建应用”;
- 选择 Agent 监测应用 Tab。
集成类型¶
当前支持以下集成框架:
OpenClaw 接入配置¶
第一步:环境要求¶
已安装 OpenClaw。
第二步:安装最新版本插件¶
复制到终端或直接发送至 Agent 聊天窗口中执行:
curl -fsSL -o /tmp/openclaw-otel-plugin-install.sh \
https://static.guance.com/openclaw-otel-plugin/install.sh && \
OSS_ENDPOINT=https://static.guance.com \
bash /tmp/openclaw-otel-plugin-install.sh latest \
--type gtrace \
--endpoint http://testing-openway.dataflux.cn \
--x-token agent_b77d9****a10c0
第三步:验证连接¶
安装完成后执行:
正常情况下可看到 [otel-plugin] metric export succeeded 和 [otel-plugin] trace export succeeded 日志。
更新插件¶
只替换插件文件并保留已有配置时执行:
rm -f /tmp/openclaw-otel-plugin-update.sh && \
curl -fsSL -o /tmp/openclaw-otel-plugin-update.sh \
https://static.guance.com/openclaw-otel-plugin/update.sh && \
bash /tmp/openclaw-otel-plugin-update.sh latest --no-config
Hermes 接入配置¶
第一步:环境要求¶
已安装 Hermes。
第二步:安装最新版本插件¶
复制到终端或直接发送至 Agent 聊天窗口中执行:
curl -fsSL -o /tmp/hermes-otel-plugin-install.sh \
https://static.guance.com/hermes-otel-plugin/install.sh && \
OSS_ENDPOINT=https://static.guance.com \
bash /tmp/hermes-otel-plugin-install.sh latest \
--type gtrace \
--endpoint http://testing-openway.dataflux.cn \
--x-token agent_b77d****7bca391dc2c0a10c0
第三步:验证连接¶
安装完成后执行:
正常情况下可看到 [otel-plugin] metric export succeeded 和 [otel-plugin] trace export succeeded 日志。
更新插件¶
只替换插件文件并保留已有配置时执行:
rm -f /tmp/hermes-otel-plugin-update.sh && \
curl -fsSL -o /tmp/hermes-otel-plugin-update.sh \
https://static.guance.com/hermes-otel-plugin/update.sh && \
bash /tmp/hermes-otel-plugin-update.sh latest --no-config
填写代码中的变量¶
在页面右侧填写以下信息:
| 字段 | 说明 |
|---|---|
| 应用名称 | 自定义应用名称 |
| 应用 ID | 公钥,仅支持英文、数字、下划线,用于在链路、日志、指标中归属当前应用 |
| 服务地址 | 填写 Dataway 网关地址 |
| Client Token | 应用创建后自动生成,用于从用户设备中发送数据 |
确认信息无误后,点击创建,完成 Agent 监测应用接入。