接入方式 | 说明 | 推荐场景 |
使用支持 Skill 的 AI 工具,由 AI 自动创建或复用日志主题、识别环境并完成接入与分析。 | 使用支持 Skill 的 AI 工具,希望一键接入、减少手动配置。 | |
按步骤执行安装命令,手动填写地域接入点、日志主题、密钥等参数完成接入。 | 需要精细化控制接入参数,或所用工具不支持 Skill。 |
Region(如 ap-guangzhou);方式二中对应填写域名,外网域名为 ap-guangzhou.cls.tencentyun.com,内网域名为 ap-guangzhou.cls.tencentcs.com。请使用腾讯云 Agent 可观测接入 Skill:https://skillhub.cn/skills/tencentcloud-cls-agent-obs帮我把当前 AI 应用接入腾讯云 Agent 可观测。接入方式:CodeBuddy + WorkBuddyRegion:ap-guangzhou
curl -fsSL https://onesuite-pilot-1254077820.cos.ap-shanghai.myqcloud.com/onesuite-pilot/installer.sh | bash -s -- install \\--cls-endpoint "<your-cls-endpoint>" \\--cls-topic-id "<your-topic-id>" \\--cls-secret-id "<your-secret-id>" \\--cls-secret-key "<your-secret-key>" \\
参数 | 必选 | 说明 |
--cls-endpoint | 是 | 以广州地域为例,外网域名:ap-guangzhou.cls.tencentyun.com,内网域名:ap-guangzhou.cls.tencentcs.com。 |
--cls-topic-id | 是 | 目标日志主题 ID(TopicId)。 |
--cls-secret-id | 是 | |
--cls-secret-key | 是 | |
--user-id | 否 | 数据归属用户标识,写入上报数据的 gen_ai.user.id 字段。不指定时默认取主机名。也可写作 --userId 或 --user.id。 |
--user-name | 否 | 用户展示名,映射为 gen_ai.user.name,与 userId 为两个独立字段。 |
--agents | 否 | 指定接入的 Agent 列表(逗号分隔)。不指定时自动接入所有探测到的 Agent。 |
--data-dir | 否 | 自定义数据目录,默认 ~/.onesuite-pilot。 |
--auto-update | 否 | 自动升级,建议开启。 |
✅ 安装完成! 即表示部署成功。ONESUITE_PILOT_USER_ID → 配置文件 userId → 配置文件 user.id → 主机名(兜底)。onesuite-pilot status # 查看服务运行状态onesuite-pilot info # 查看版本、配置文件路径与完整配置
✅ onesuite-pilot v... is running (PID xxxxx),且 autostart: enabled。onesuite-pilot: command not found,请重启终端,或执行 source ~/.bashrc 使环境变量生效后重试。该提示不影响 OneSuite-Pilot 服务运行。命令 | 说明 |
onesuite-pilot status | 查看服务运行状态、PID、自启状态。 |
onesuite-pilot info | 查看版本、配置文件路径、数据目录及完整配置。 |
onesuite-pilot restart | 重启服务。修改配置后须执行,重启时会强制刷出缓冲区数据。 |
onesuite-pilot stop / start | 停止 / 启动服务。 |
~/.onesuite-pilot/config.json,修改后重启服务即可生效。配置文件为标准 JSON,核心结构如下:{"enabled": true,"dataDir": "/Users/you/.onesuite-pilot","userId": "122855467","userName": "helloworld","flushers": {"cls": {"endpoint": "ap-guangzhou.cls.tencentyun.com","topicId": "<your-topic-id>","secretId": "<your-secret-id>","secretKey": "<your-secret-key>"}}}
cp ~/.onesuite-pilot/config.json ~/.onesuite-pilot/config.json.bak
dataDir 同级)加入 userId 与 userName 两个字段,然后重启服务。config.json,新增以下字段:"userId": "122855467","userName": "helloworld",
onesuite-pilot restart
flushers.cls 下的 endpoint(地域接入点)与 topicId(目标主题),重启后生效。例如切换到 ap-guangzhou-open 地域的新主题:"flushers": {"cls": {- "endpoint": "ap-guangzhou.cls.tencentyun.com",+ "endpoint": "ap-guangzhou-open.cls.tencentyun.com",- "topicId": "9263b751-9b29-4931-aeb9-4405cf69a2ea",+ "topicId": "3189f2f4-1f03-4f4a-b4c5-b139d037df61",...}}
--auto-update,需要手动更新到最新版本。--auto-update 的用户,程序会自动升级,通常无需手动执行本命令。升级不会覆盖已有的 ~/.onesuite-pilot/config.json 配置。curl -fsSL https://onesuite-pilot-1254077820.cos.ap-shanghai.myqcloud.com/onesuite-pilot/installer.sh | bash -s -- upgrade
onesuite-pilot info 确认版本已更新。--purge 参数(或按服务管理脚本提示操作),即可停止服务、移除 Hook 与自启项。数据目录 ~/.onesuite-pilot 可按需手动清理。curl -fsSL https://onesuite-pilot-1254077820.cos.ap-shanghai.myqcloud.com/onesuite-pilot/installer.sh | bash -s -- uninstall --purge
config.json 并执行 onesuite-pilot restart 即可。重装会覆盖现有配置,仅在需要全新部署时使用。logs/ 下的 metrics 文件)仅在有数据流入时刷新,空闲期保留的是历史残留值。以 config.json 与 onesuite-pilot info 的输出为准,二者即为当前实际生效配置。onesuite-pilot info 查看服务加载的配置;待下一次有 Agent 活动产生数据后,检查 ~/.onesuite-pilot/logs/<agent>/*.jsonl 中最新记录的 gen_ai.user.id 字段即可确认。Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback