cx-olly
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOlly Observability Agent Skill
Olly Observability Agent技能
Use this skill to interact with Coralogix's Observability Agent (Olly) via the CLI commands. Olly can analyze your observability data, answer questions about alerts, metrics, logs, and generate artifacts like charts and reports.
cx olly使用此技能通过 CLI命令与Coralogix的Observability Agent(Olly)进行交互。Olly可以分析您的可观测性数据,解答有关告警、指标、日志的问题,并生成图表和报告等工件。
cx ollyCLI Commands
CLI命令
| Command | Purpose | Key flags |
|---|---|---|
| Send a message to the Observability Agent | |
| List all generated artifacts | - |
| Get artifact content by ID | - |
Output format: append or for machine-readable output.
-o json-o agentsSingle-profile only: commands do not support multi-profile fan-out. Use to specify a single profile.
cx olly-p <profile>| 命令 | 用途 | 关键参数 |
|---|---|---|
| 向可观测性Agent发送消息 | |
| 列出所有生成的工件 | - |
| 通过ID获取工件内容 | - |
输出格式: 添加或以获取机器可读的输出。
-o json-o agents仅支持单配置文件: 命令不支持多配置文件扩散。使用指定单个配置文件。
cx olly-p <profile>Chat Commands
聊天命令
Start a new conversation
开启新对话
bash
cx olly ask "What alerts fired today?"This creates a new chat and returns a response along with a Chat ID that you can use for follow-up questions.
bash
cx olly ask "What alerts fired today?"此命令会创建一个新聊天,并返回响应以及可用于后续问题的Chat ID。
Continue an existing chat
继续现有对话
bash
cx olly ask "Tell me more about the error rates" --chat-id <chat-id>Use to continue a conversation and maintain context from previous messages.
--chat-idbash
cx olly ask "Tell me more about the error rates" --chat-id <chat-id>使用继续对话并保留之前消息的上下文。
--chat-idInteraction modes
交互模式
| Mode | Description |
|---|---|
| Quick responses, less detailed analysis |
| Balanced mode (default) - good for most queries |
bash
cx olly ask "Quick summary of recent errors" --mode fast| 模式 | 描述 |
|---|---|
| 快速响应,分析细节较少 |
| 平衡模式(默认)- 适用于大多数查询 |
bash
cx olly ask "Quick summary of recent errors" --mode fastModel selection
模型选择
Available models include (default), , , , .
gpt-5.2claude-sonnet-4-5sonnet-4.6gpt-5.4claude-haiku-4-5bash
cx olly ask "Explain this error" --model claude-sonnet-4-5可用模型包括(默认)、、、、。
gpt-5.2claude-sonnet-4-5sonnet-4.6gpt-5.4claude-haiku-4-5bash
cx olly ask "Explain this error" --model claude-sonnet-4-5Timeout
超时设置
For complex queries that may take longer, increase the timeout (default: 900 seconds):
bash
cx olly ask "Deep analysis of last week's incidents" --timeout 1800对于可能耗时较长的复杂查询,可增加超时时间(默认:900秒):
bash
cx olly ask "Deep analysis of last week's incidents" --timeout 1800Artifacts
工件
Olly can generate artifacts like charts, tables, and reports. Artifact IDs appear as links in the agent's response text.
Olly可以生成图表、表格和报告等工件。工件ID会以链接形式出现在Agent的响应文本中。
List all artifacts
列出所有工件
bash
cx olly artifacts list
cx olly artifacts list -o jsonbash
cx olly artifacts list
cx olly artifacts list -o jsonGet artifact content
获取工件内容
bash
cx olly artifacts get <artifact-id>
cx olly artifacts get <artifact-id> -o jsonThe command automatically:
artifacts get- Fetches artifact metadata
- Downloads content from the presigned URL
- Decompresses gzip content
- Parses JSON and uses spill logic for large content
- Saves non-JSON text to a temp file
Output behavior:
- JSON content: Displayed directly, or spilled to file if large
- Text content: Saved to temp file (e.g., )
/tmp/cx_results_artifact_<id>_<hash>.txt
bash
cx olly artifacts get <artifact-id>
cx olly artifacts get <artifact-id> -o jsonartifacts get- 获取工件元数据
- 从预签名URL下载内容
- 解压缩gzip内容
- 解析JSON并对大内容使用溢出逻辑
- 将非JSON文本保存到临时文件
输出行为:
- JSON内容:直接显示,若内容过大则保存到文件
- 文本内容:保存到临时文件(例如:)
/tmp/cx_results_artifact_<id>_<hash>.txt
Workflow Examples
工作流示例
Investigate an issue
问题排查
bash
undefinedbash
undefinedStart investigation
开始排查
cx olly ask "Why is the checkout service showing high latency?"
cx olly ask "Why is the checkout service showing high latency?"
Follow up with the chat ID from the response
使用响应中的Chat ID进行跟进
cx olly ask "What changed in the last hour?" --chat-id abc-123-def
cx olly ask "What changed in the last hour?" --chat-id abc-123-def
Get any generated charts
获取生成的图表
cx olly artifacts list -o json | jq '.[0].id'
cx olly artifacts get <artifact-id>
undefinedcx olly artifacts list -o json | jq '.[0].id'
cx olly artifacts get <artifact-id>
undefinedGet JSON output for scripting
获取JSON输出用于脚本编写
bash
undefinedbash
undefinedGet response as JSON
获取JSON格式的响应
cx olly ask "List top 5 error messages" -o json | jq '.response'
cx olly ask "List top 5 error messages" -o json | jq '.response'
Parse artifacts
解析工件
cx olly artifacts list -o json | jq '.[] | {id, filename, created_at}'
undefinedcx olly artifacts list -o json | jq '.[] | {id, filename, created_at}'
undefinedDetailed analysis with specific model
使用指定模型进行详细分析
bash
cx olly ask "Perform root cause analysis for the outage on 2024-01-15" \
--model claude-sonnet-4-5 \
--timeout 1800bash
cx olly ask "Perform root cause analysis for the outage on 2024-01-15" \
--model claude-sonnet-4-5 \
--timeout 1800Key Principles
核心原则
- Chat IDs enable context - save the Chat ID from responses to continue conversations
- Use for scripting - pipe to
-o jsonfor filtering and extractionjq - Artifact IDs are in response text - look for markdown links like
[Chart](https://...artifact_view/<id>) - Single-profile only - does not support multi-profile queries
cx olly - Large artifacts auto-spill - JSON content over the configured limit is saved to temp files
- Chat ID保留上下文 - 保存响应中的Chat ID以继续对话
- 使用用于脚本编写 - 通过管道传递给
-o json进行过滤和提取jq - 工件ID在响应文本中 - 查找类似的Markdown链接
[Chart](https://...artifact_view/<id>) - 仅支持单配置文件 - 不支持多配置文件查询
cx olly - 大工件自动溢出 - 超过配置限制的JSON内容会保存到临时文件
Related Skills
相关技能
- - for direct DataPrime/PromQL queries without AI agent assistance (covers logs, spans, metrics, RUM)
cx-telemetry-querying - - for managing alert definitions
cx-alerts
- - 无需AI Agent协助,直接进行DataPrime/PromQL查询(涵盖日志、链路、指标、RUM)
cx-telemetry-querying - - 用于管理告警定义
cx-alerts