Cx Observability Setup

coralogix/cx-cli/skills/cx-observability-setup

作者 coralogixc0713729787b无许可证121 个星标收录于 2026年10月8日更新于 2026年10月8日仓库昨天更新

Use this skill when the user asks to "set up monitoring", "configure observability", "onboard new service", "create saved view", "set up notifications", "configure webhook", "set up Slack integration", "outgoing webhook", "automation action", "webhook for alerts", "create view", "saved view", "view folder", "organize dashboards", "install integration", "configure extension", "contextual data", "connect external service", "create notification connector", "set up email alerts", "configure PagerDuty", "notification routing", "deploy extension", "test webhook", "notification preset", "test notification", "webhook actions", or wants to set up, configure, or manage the observability stack for a service or team.

仅含说明DevOps & Cloud
AI 生成的概览

指导通过 cx CLI 命令设置可观测性视图、Webhook、通知渠道与集成。

功能
该技能提供使用 cx 命令行界面配置可观测性栈的说明。它记录了保存视图与文件夹、出站 Webhook 与自动化操作、通知连接器、路由器和预设,以及集成、扩展和上下文数据相关命令。它还给出新服务接入、通知设置和 Webhook 设置的分步工作流,并强调配置后要进行测试。
适用场景
当用户想要为某个服务或团队设置或重新配置监控与可观测性时使用,例如创建保存视图、配置 Webhook、将告警路由到 Slack、PagerDuty 或电子邮件,或安装集成。它适合作为新服务接入或调整通知管道的初始设置指南。
运行要求
需要可用的 cx CLI 并完成身份验证,支持配置文件选择和 JSON 输出。需要网络访问以连接可观测性平台以及 Slack、PagerDuty 等外部服务。该技能不包含脚本,仅为说明文档,JSON 载荷文件由用户提供。

Observability Setup 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.


CLI Commands

Views

CommandPurpose
cx views listList all saved views
cx views get <id>Get a view definition
cx views create --from-fileCreate a saved view
cx views update <id> --from-fileUpdate a saved view
cx views delete <id>Delete a saved view
cx views folders listList view folders
cx views folders get <id>Get a folder
cx views folders create --from-fileCreate a folder
cx views folders update <id> --from-fileUpdate a folder
cx views folders delete <id>Delete a folder

Webhooks

CommandPurpose
cx webhooks listList all outgoing webhooks
cx webhooks get <id>Get webhook details
cx webhooks create --from-fileCreate a webhook
cx webhooks update <id> --from-fileUpdate a webhook
cx webhooks delete <id>Delete a webhook
cx webhooks test <id>Test a webhook
cx webhooks typesList available webhook types
cx webhooks actions listList automation actions
cx webhooks actions get <id>Get action details
cx webhooks actions create --from-fileCreate an action
cx webhooks actions update --from-fileUpdate an action
cx webhooks actions delete <id>Delete an action
cx webhooks actions batch --from-fileBatch execute actions
cx webhooks actions reorder --from-fileReorder actions

Notifications

CommandPurpose
cx notifications connectors listList notification connectors
cx notifications connectors get <id>Get connector details
cx notifications connectors create --from-fileCreate a connector
cx notifications connectors update --from-fileUpdate a connector
cx notifications connectors delete <id>Delete a connector
cx notifications connectors typesList connector types
cx notifications connectors entity-typesList entity types
cx notifications connectors entity-subtypes --type <type>List entity subtypes
cx notifications routers listList notification routers
cx notifications routers get <id>Get router details
cx notifications routers create --from-fileCreate a router
cx notifications routers update --from-fileUpdate a router
cx notifications routers delete <id>Delete a router
cx notifications routers validate-matcher --from-fileTest entity label matcher
cx notifications presets listList notification presets
cx notifications presets get <id>Get preset details
cx notifications presets create --from-fileCreate a custom preset
cx notifications presets update --from-fileUpdate a custom preset
cx notifications presets delete <id>Delete a custom preset
cx notifications presets set-default <id>Set default preset
cx notifications test connector --from-fileTest connector config
cx notifications test destination --from-fileTest destination
cx notifications test preset --from-fileTest preset config
cx notifications test routing-condition --from-fileTest routing condition
cx notifications test template-render --from-fileTest template rendering

Integrations

CommandPurpose
cx integrations listList all integrations
cx integrations get <id>Get integration details
cx integrations create --from-fileCreate an integration
cx integrations update <id> --from-fileUpdate an integration
cx integrations delete <id>Delete an integration
cx integrations test --from-fileTest integration config
cx integrations templateGet integration template
cx integrations definition <id>Get integration definition
cx integrations deployed <id>Get deployed integration
cx integrations extensions listList available extensions
cx integrations extensions get <id>Get extension details
cx integrations extensions deployedList deployed extensions
cx integrations extensions deploy --from-fileDeploy an extension
cx integrations extensions update --from-fileUpdate deployed extension
cx integrations extensions undeploy --from-fileUndeploy an extension
cx integrations contextual-data listList contextual data integrations
cx integrations contextual-data get <id>Get contextual data details
cx integrations contextual-data create --from-fileCreate contextual data integration
cx integrations contextual-data update <id> --from-fileUpdate contextual data integration
cx integrations contextual-data delete <id>Delete contextual data integration
cx integrations contextual-data definition <id>Get contextual data definition
cx integrations contextual-data test <id>Test contextual data integration

All commands support -o json for structured output and -p <profile> for profile selection.


New Service Setup Workflow

When onboarding a new service, follow this checklist:

1. Create Saved Views

Set up views for the service's key log queries:

bash
cx views folders create --from-file folder.jsoncx views create --from-file view.json

2. Set Up Notification Connectors

Configure channels (Slack, PagerDuty, email):

bash
cx notifications connectors types -o jsoncx notifications connectors create --from-file slack-connector.json

3. Configure Notification Routing

Route alerts to the right channels:

bash
cx notifications routers create --from-file router.json

4. Set Up Webhooks

Configure outgoing webhooks for external integrations:

bash
cx webhooks types -o jsoncx webhooks create --from-file webhook.jsoncx webhooks test <webhook-id>

5. Install Integrations

Deploy relevant integrations and extensions:

bash
cx integrations list -o jsoncx integrations create --from-file integration.jsoncx integrations extensions deploy --from-file extension.json

6. Create Dashboard

Use the cx-dashboards skill for the full dashboard creation workflow.

7. Create SLOs

Use the cx-slos skill for SLO creation and monitoring.


Notification Setup Workflow

Detailed notification channel configuration:

1. List Available Connector Types

bash
cx notifications connectors types -o json

2. Create a Connector

bash
cx notifications connectors create --from-file connector.json

3. Create a Router

bash
cx notifications routers create --from-file router.json

4. Assign or Create a Preset

bash
cx notifications presets list -o jsoncx notifications presets create --from-file preset.jsoncx notifications presets set-default <preset-id>

5. Test End-to-End

bash
cx notifications test connector --from-file test-connector.jsoncx notifications test destination --from-file test-destination.jsoncx notifications test routing-condition --from-file test-condition.json

Webhook Setup

1. List Webhook Types

bash
cx webhooks types -o json

2. Create Webhook

Template from an existing webhook if possible:

bash
cx webhooks get <existing-id> -o json > webhook-template.jsoncx webhooks create --from-file webhook.json

3. Test Webhook

bash
cx webhooks test <webhook-id>

4. Create Automation Actions (Optional)

bash
cx webhooks actions create --from-file action.jsoncx webhooks actions reorder --from-file order.json

Key Principles

  • Always test after setup - use cx notifications test, cx webhooks test, cx integrations test
  • Use --from-file for complex JSON payloads - pipe from stdin or use a file
  • Template from existing - cx <command> get <id> -o json > template.json before creating
  • Check connector types first - cx notifications connectors types and cx webhooks types before creating

Related Skills

  • cx-dashboards - dashboard creation and replace workflow
  • cx-slos - SLO creation and error-budget monitoring
  • cx-cases - triage the cases raised when alerts fire
  • cx-alerts - alert definitions that trigger notifications
  • cx-telemetry-querying - verify data flows after setup

来源与署名

来源:coralogix/cx-cli位于skills/cx-observability-setup提交c071372

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架