Access Method | Description | Recommended Scenario |
Use an AI tool that supports Skill to have AI automatically create or reuse log topics, identify environments, and complete access and analysis. | Use an AI tool that supports Skill to achieve one-click access and minimize manual configuration. | |
Execute installation commands step by step, and manually enter parameters such as region endpoint, log topic, and key to complete access. | Require fine-grained control over access parameters, or the tool in use does not support Skill. |
Region (such as ap-guangzhou) in method 1. In method 2, enter the domain name instead. The public network domain is ap-guangzhou.cls.tencentyun.com, and the private network domain is ap-guangzhou.cls.tencentcs.com.Use the Tencent Cloud Agent Observability Integration Skill:https://skillhub.cn/skills/tencentcloud-cls-agent-obsHelp me integrate the current AI application into Tencent Cloud Agent Observability.Integration method: 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>" \\
Parameter | Required | Description |
--cls-endpoint | Yes | For example, in the Guangzhou region, the public network domain name is ap-guangzhou.cls.tencentyun.com, and the private network domain name is ap-guangzhou.cls.tencentcs.com. |
--cls-topic-id | Yes | Target log topic ID (TopicId). |
--cls-secret-id | Yes | Access credential SecretId requires write permission on the target topic. For TencentCloud API key information, go to API key management to obtain it. |
--cls-secret-key | Yes | Access credential SecretKey. For TencentCloud API key information, go to API key management to obtain it. |
--user-id | No | User identifier for data ownership. It is written to the gen_ai.user.id field of reported data. If not specified, the hostname is used by default. It can also be written as --userId or --user.id. |
--user-name | No | User display name, mapped to gen_ai.user.name. It is an independent field from userId. |
--agents | No | Specify the list of Agents to access (comma-separated). If not specified, all detected Agents are automatically accessed. |
--data-dir | No | Custom data directory, default ~/.onesuite-pilot. |
--auto-update | No | Automatic upgrade, recommended to enable. |
✅ Installation complete! appears, the deployment is successful.ONESUITE_PILOT_USER_ID → configuration file userId → configuration file user.id → hostname (fallback).onesuite-pilot status # View the service running statusonesuite-pilot info # View the version, configuration file path, and complete configuration
✅ onesuite-pilot v... is running (PID xxxxx) and autostart: enabled.onesuite-pilot: command not found is displayed when you run the command, restart the terminal or run source ~/.bashrc to make the environment variables take effect, and then try again. This message does not affect the running of the OneSuite-Pilot service.Command | Description |
onesuite-pilot status | View the service running status, PID, and auto-start status. |
onesuite-pilot info | View the version, configuration file path, data directory, and complete configuration. |
onesuite-pilot restart | Restart the service. It must be executed after the configuration is modified, and buffer data will be forcibly flushed during the restart. |
onesuite-pilot stop / start | Stop/start the service. |
~/.onesuite-pilot/config.json, and restart the service after making changes for them to take effect. The configuration file is in standard JSON format, with the following core structure:{"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
userId and userName fields at the top level of the configuration file (at the same level as dataDir), and then restart the service.config.json and add the following fields:"userId": "122855467","userName": "helloworld",
onesuite-pilot restart
endpoint (region endpoint) and topicId (target topic) under flushers.cls. The changes take effect after a restart. For example, to switch to a new topic in the ap-guangzhou-open region:"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 was not enabled during installation, you need to manually update to the latest version.--auto-update during installation, the program is upgraded automatically, so you usually do not need to run this command manually. The upgrade does not overwrite the existing ~/.onesuite-pilot/config.json configuration.curl -fsSL https://onesuite-pilot-1254077820.cos.ap-shanghai.myqcloud.com/onesuite-pilot/installer.sh | bash -s -- upgrade
onesuite-pilot info to confirm that the version has been updated.--purge parameter (or follow the prompts of the service management script) to stop the service and remove the Hook and autostart entries. The data directory ~/.onesuite-pilot can be manually cleaned up as needed.curl -fsSL https://onesuite-pilot-1254077820.cos.ap-shanghai.myqcloud.com/onesuite-pilot/installer.sh | bash -s -- uninstall --purge
userId field at the top level of config.json, and then restart. Reinstallation is not required.config.json and run onesuite-pilot restart. Reinstalling overwrites the existing configuration, so use it only when a fresh deployment is required.logs/) are refreshed only when data flows in. During idle periods, they retain historical residual values. Refer to the output of config.json and onesuite-pilot info, as these two represent the currently effective configuration.onesuite-pilot info to view the configuration loaded by the service. After the next Agent activity generates data, check the gen_ai.user.id field in the latest record under ~/.onesuite-pilot/logs/<agent>/*.jsonl to confirm.Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários