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★ 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:
- Routing labels (
entityLabels) decide which Notification Center routers pick the alert up. They work the same way in both modes. - The mode decides who sends the notification. It is set by one field: whether
notificationGroup.routerexists.
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,
notificationGroupwith onlygroupByKeyswhen the user wants one case per group (otherwise leave it out), and noincidentsSettings. The API fills in Cases-mode defaults. - Routing labels go in
entityLabelsasrouting.team,routing.serviceandrouting.environment. Therouting.prefix is required: a bareteamkey 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 PromQLby (...)clause). Otherwise leave it out: the alert then opens one combined case for all groups. - Never add
notificationGroup.routerun
Установить cx-alerts в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub