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 從公開儲存庫中收錄這些內容。

檢舉或申請下架