cx-observability-setup
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseObservability Setup Skill
可观测性设置Skill
Use this skill when setting up or configuring the observability stack - saved views, webhook integrations, notification channels, and external integrations. This is the "day 1 setup" skill for onboarding a new service or reconfiguring notification pipelines.
当设置或配置可观测性堆栈(已保存视图、Webhook集成、通知渠道和外部集成)时,使用此Skill。这是用于接入新服务或重新配置通知流水线的“首日设置”Skill。
CLI Commands
CLI 命令
Views
视图
| Command | Purpose |
|---|---|
| List all saved views |
| Get a view definition |
| Create a saved view |
| Update a saved view |
| Delete a saved view |
| List view folders |
| Get a folder |
| Create a folder |
| Update a folder |
| Delete a folder |
| 命令 | 用途 |
|---|---|
| 列出所有已保存视图 |
| 获取视图定义 |
| 创建已保存视图 |
| 更新已保存视图 |
| 删除已保存视图 |
| 列出视图文件夹 |
| 获取文件夹信息 |
| 创建文件夹 |
| 更新文件夹 |
| 删除文件夹 |
Webhooks
Webhook
| Command | Purpose |
|---|---|
| List all outgoing webhooks |
| Get webhook details |
| Create a webhook |
| Update a webhook |
| Delete a webhook |
| Test a webhook |
| List available webhook types |
| List automation actions |
| Get action details |
| Create an action |
| Update an action |
| Delete an action |
| Batch execute actions |
| Reorder actions |
| 命令 | 用途 |
|---|---|
| 列出所有出站Webhook |
| 获取Webhook详情 |
| 创建Webhook |
| 更新Webhook |
| 删除Webhook |
| 测试Webhook |
| 列出可用的Webhook类型 |
| 列出自动化操作 |
| 获取操作详情 |
| 创建操作 |
| 更新操作 |
| 删除操作 |
| 批量执行操作 |
| 重新排序操作 |
Notifications
通知
| Command | Purpose |
|---|---|
| List notification connectors |
| Get connector details |
| Create a connector |
| Update a connector |
| Delete a connector |
| List connector types |
| List entity types |
| List entity subtypes |
| List notification routers |
| Get router details |
| Create a router |
| Update a router |
| Delete a router |
| Test entity label matcher |
| List notification presets |
| Get preset details |
| Create a custom preset |
| Update a custom preset |
| Delete a custom preset |
| Set default preset |
| Test connector config |
| Test destination |
| Test preset config |
| Test routing condition |
| Test template rendering |
| 命令 | 用途 |
|---|---|
| 列出通知连接器 |
| 获取连接器详情 |
| 创建连接器 |
| 更新连接器 |
| 删除连接器 |
| 列出连接器类型 |
| 列出实体类型 |
| 列出实体子类型 |
| 列出通知路由器 |
| 获取路由器详情 |
| 创建路由器 |
| 更新路由器 |
| 删除路由器 |
| 测试实体标签匹配器 |
| 列出通知预设 |
| 获取预设详情 |
| 创建自定义预设 |
| 更新自定义预设 |
| 删除自定义预设 |
| 设置默认预设 |
| 测试连接器配置 |
| 测试目标地址 |
| 测试预设配置 |
| 测试路由条件 |
| 测试模板渲染 |
Integrations
集成
| Command | Purpose |
|---|---|
| List all integrations |
| Get integration details |
| Create an integration |
| Update an integration |
| Delete an integration |
| Test integration config |
| Get integration template |
| Get integration definition |
| Get deployed integration |
| List available extensions |
| Get extension details |
| List deployed extensions |
| Deploy an extension |
| Update deployed extension |
| Undeploy an extension |
| List contextual data integrations |
| Get contextual data details |
| Create contextual data integration |
| Update contextual data integration |
| Delete contextual data integration |
| Get contextual data definition |
| Test contextual data integration |
All commands support for structured output and for profile selection.
-o json-p <profile>| 命令 | 用途 |
|---|---|
| 列出所有集成 |
| 获取集成详情 |
| 创建集成 |
| 更新集成 |
| 删除集成 |
| 测试集成配置 |
| 获取集成模板 |
| 获取集成定义 |
| 获取已部署集成 |
| 列出可用扩展 |
| 获取扩展详情 |
| 列出已部署扩展 |
| 部署扩展 |
| 更新已部署扩展 |
| 取消部署扩展 |
| 列出上下文数据集成 |
| 获取上下文数据详情 |
| 创建上下文数据集成 |
| 更新上下文数据集成 |
| 删除上下文数据集成 |
| 获取上下文数据定义 |
| 测试上下文数据集成 |
所有命令都支持 以输出结构化数据,以及 用于选择配置文件。
-o json-p <profile>New Service Setup Workflow
新服务接入流程
When onboarding a new service, follow this checklist:
接入新服务时,请遵循以下检查清单:
1. Create Saved Views
1. 创建已保存视图
Set up views for the service's key log queries:
bash
cx views folders create --from-file folder.json
cx views create --from-file view.json为服务的关键日志查询设置视图:
bash
cx views folders create --from-file folder.json
cx views create --from-file view.json2. Set Up Notification Connectors
2. 设置通知连接器
Configure channels (Slack, PagerDuty, email):
bash
cx notifications connectors types -o json
cx notifications connectors create --from-file slack-connector.json配置渠道(Slack、PagerDuty、邮件):
bash
cx notifications connectors types -o json
cx notifications connectors create --from-file slack-connector.json3. Configure Notification Routing
3. 配置通知路由
Route alerts to the right channels:
bash
cx notifications routers create --from-file router.json将告警路由到正确的渠道:
bash
cx notifications routers create --from-file router.json4. Set Up Webhooks
4. 设置Webhook
Configure outgoing webhooks for external integrations:
bash
cx webhooks types -o json
cx webhooks create --from-file webhook.json
cx webhooks test <webhook-id>为外部集成配置出站Webhook:
bash
cx webhooks types -o json
cx webhooks create --from-file webhook.json
cx webhooks test <webhook-id>5. Install Integrations
5. 安装集成
Deploy relevant integrations and extensions:
bash
cx integrations list -o json
cx integrations create --from-file integration.json
cx integrations extensions deploy --from-file extension.json部署相关集成和扩展:
bash
cx integrations list -o json
cx integrations create --from-file integration.json
cx integrations extensions deploy --from-file extension.json6. Create Dashboard
6. 创建仪表板
Use the skill for the full dashboard creation workflow.
cx-create-dashboard使用 Skill 完成完整的仪表板创建流程。
cx-create-dashboard7. Create SLOs
7. 创建SLO
Use the skill for SLO creation and monitoring.
cx-incident-management使用 Skill 完成SLO创建和监控。
cx-incident-managementNotification Setup Workflow
通知设置流程
Detailed notification channel configuration:
详细的通知渠道配置步骤:
1. List Available Connector Types
1. 列出可用的连接器类型
bash
cx notifications connectors types -o jsonbash
cx notifications connectors types -o json2. Create a Connector
2. 创建连接器
bash
cx notifications connectors create --from-file connector.jsonbash
cx notifications connectors create --from-file connector.json3. Create a Router
3. 创建路由器
bash
cx notifications routers create --from-file router.jsonbash
cx notifications routers create --from-file router.json4. Assign or Create a Preset
4. 分配或创建预设
bash
cx notifications presets list -o json
cx notifications presets create --from-file preset.json
cx notifications presets set-default <preset-id>bash
cx notifications presets list -o json
cx notifications presets create --from-file preset.json
cx notifications presets set-default <preset-id>5. Test End-to-End
5. 端到端测试
bash
cx notifications test connector --from-file test-connector.json
cx notifications test destination --from-file test-destination.json
cx notifications test routing-condition --from-file test-condition.jsonbash
cx notifications test connector --from-file test-connector.json
cx notifications test destination --from-file test-destination.json
cx notifications test routing-condition --from-file test-condition.jsonWebhook Setup
Webhook 设置
1. List Webhook Types
1. 列出Webhook类型
bash
cx webhooks types -o jsonbash
cx webhooks types -o json2. Create Webhook
2. 创建Webhook
Template from an existing webhook if possible:
bash
cx webhooks get <existing-id> -o json > webhook-template.json
cx webhooks create --from-file webhook.json尽可能从现有Webhook生成模板:
bash
cx webhooks get <existing-id> -o json > webhook-template.json
cx webhooks create --from-file webhook.json3. Test Webhook
3. 测试Webhook
bash
cx webhooks test <webhook-id>bash
cx webhooks test <webhook-id>4. Create Automation Actions (Optional)
4. 创建自动化操作(可选)
bash
cx webhooks actions create --from-file action.json
cx webhooks actions reorder --from-file order.jsonbash
cx webhooks actions create --from-file action.json
cx webhooks actions reorder --from-file order.jsonKey Principles
核心原则
- Always test after setup - use ,
cx notifications test,cx webhooks testcx integrations test - Use for complex JSON payloads - pipe from stdin or use a file
--from-file - Template from existing - before creating
cx <command> get <id> -o json > template.json - Check connector types first - and
cx notifications connectors typesbefore creatingcx webhooks types
- 设置后务必测试 - 使用 、
cx notifications test、cx webhooks testcx integrations test - 使用 处理复杂JSON负载 - 从标准输入管道或使用文件
--from-file - 从现有资源生成模板 - 创建前使用
cx <command> get <id> -o json > template.json - 先检查连接器类型 - 创建前使用 和
cx notifications connectors typescx webhooks types
Related Skills
相关Skill
- - dashboard creation workflow for new services
cx-create-dashboard - - SLO creation and alert triage workflows
cx-incident-management - - alert definitions that trigger notifications
cx-alerts - - verify data flows after setup
cx-telemetry-querying
- - 新服务的仪表板创建流程
cx-create-dashboard - - SLO创建和告警分流流程
cx-incident-management - - 触发通知的告警定义
cx-alerts - - 设置后验证数据流
cx-telemetry-querying