Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cx-alerts

БесплатноБез исполняемых скриптовНе проверен

This skill should be used when the user asks to "manage alerts", "create alert", "list alerts", "delete alert", "check alert status", "enable alert", "disable…

coralogixот coralogix★ 243 звезды на GitHub

Об этом скилле

Alert Management Skill

Use this skill to list, inspect, create, delete, enable, and disable Coralogix alert definitions using the cx alerts CLI commands.

CLI Commands

Command Purpose Key flags
cx alerts list List all alert definitions --name <filter>
cx alerts get <id> Get a single alert definition by ID -
cx alerts create Create an alert from a JSON definition --from-file <path> (default: stdin)
cx alerts delete <id> Delete an alert -
cx alerts enable <id> Enable an alert -
cx alerts disable <id> Disable an alert -
cx alerts events List events; use alert-version scoped endpoint when filtering --alert-version-id, --start, --end
cx alerts event-stats Get alert event statistics -
cx alerts suppression-rules list List suppression rules -
cx alerts suppression-rules get <id> Get a suppression rule -
cx alerts suppression-rules create Create a suppression rule --from-file <path>
cx alerts suppression-rules update Update a suppression rule --from-file <path>
cx alerts suppression-rules delete <id> Delete a suppression rule -

Output format: append -o json or -o toon to list, get, and create commands for machine-readable output.

Multi-profile: use -p <profile> (repeatable) to target multiple profiles simultaneously.

Alert Types Reference

Coralogix supports 12 alert types:

Type enum Human name Description
ALERT_DEF_TYPE_LOGS_IMMEDIATE Logs Immediate Trigger on every matching log entry
ALERT_DEF_TYPE_LOGS_THRESHOLD Logs Threshold Trigger when log count exceeds a threshold in a time window
ALERT_DEF_TYPE_LOGS_ANOMALY Logs Anomaly ML-based anomaly detection on log volume
ALERT_DEF_TYPE_LOGS_RATIO_THRESHOLD Logs Ratio Threshold Trigger on ratio between two log queries
ALERT_DEF_TYPE_LOGS_NEW_VALUE Logs New Value Trigger when a new value appears in a field
ALERT_DEF_TYPE_LOGS_UNIQUE_COUNT Logs Unique Count Trigger on unique value count threshold
ALERT_DEF_TYPE_LOGS_TIME_RELATIVE_THRESHOLD Logs Time Relative Compare current vs past time window
ALERT_DEF_TYPE_METRIC_THRESHOLD Metric Threshold Trigger when a PromQL expression crosses a threshold
ALERT_DEF_TYPE_METRIC_ANOMALY Metric Anomaly ML-based anomaly detection on metrics
ALERT_DEF_TYPE_TRACING_IMMEDIATE Tracing Immediate Trigger on every matching span
ALERT_DEF_TYPE_TRACING_THRESHOLD Tracing Threshold Trigger when span count exceeds a threshold
ALERT_DEF_TYPE_FLOW Flow Sequence-based alert combining multiple conditions

Priority Levels

Always ask the user what priority to use when creating alerts:

Priority Use case
P1 Critical - pages on-call immediately
P2 High - needs attention within the hour
P3 Medium - investigate during business hours
P4 Low - informational, check when convenient
P5 Info - logging/tracking only

Notifications: Cases by Default

Two separate things decide where an alert's notifications go:

  1. Routing labels (entityLabels) decide which Notification Center routers pick the alert up. They work the same way in both modes.
  2. The mode decides who sends the notification. It is set by one field: whether notificationGroup.router exists.

Cases are opened in both modes; the mode only changes where notifications come from.

Mode Stored as Who notifies
Cases (default) no notificationGroup.router The alert sends no notifications itself; its Cases do, through router rules with entityType: "CASES"
Alerts (only when asked) notificationGroup.router present The alert sends its own notifications, through router rules with entityType: "ALERTS"

Rules for the payload

Field details and JSON examples are in references/alert-schemas.md (Routing labels, Notification Group, Case Settings).

  • Default: routing labels when the user wants notifications, notificationGroup with only groupByKeys when the user wants one case per group (otherwise leave it out), and no incidentsSettings. The API fills in Cases-mode defaults.
  • Routing labels go in entityLabels as routing.team, routing.service and routing.environment. The routing. prefix is required: a bare team key is an ordinary label that no router matches, and nothing reports an error. Set only the labels the user gives; one is enough.
  • Case grouping: when the alert groups by something, ask whether each group should open its own case. If yes, set "notificationGroup": {"groupByKeys": [...]} with keys taken from the alert's own group-by keys (for metric alerts, only from the PromQL by (...) clause). Otherwise leave it out: the alert then opens one combined case for all groups.
  • Never add notificationGroup.router un
Полный SKILL.md на GitHub

Установить cx-alerts в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/alert-schemas.mdreferences/dataprime-reference.mdreferences/logs-querying.mdreferences/promql-guidelines.mdreferences/spans-querying.md

FAQ

Что делает скилл cx-alerts?

This skill should be used when the user asks to "manage alerts", "create alert", "list alerts", "delete alert", "check alert status", "enable alert", "disable alert", "investigate firing alerts", "check which alerts are active", "find alerting rules", "set up an alert", "configure alerting", "mute an alert", "silence an alert", "see alert definitions", "check alert priority", or wants to manage Coralogix alert definitions using the cx CLI.

Как установить скилл cx-alerts?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cx-alerts запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cx-alerts с