Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
coralogix avatar

Cx Alerts

  • 1.5k installs
  • 113 repo stars
  • Updated August 4, 2026
  • coralogix/cx-cli

cx-alerts is a DevOps skill that lets developers create, list, modify, enable, disable, and investigate Coralogix alert definitions directly from Cursor or Claude Code using the cx alerts CLI.

About

cx-alerts is a Coralogix cx-cli skill at metadata version 0.1.0 for developers managing observability alerts without leaving the editor. The skill maps natural-language requests—create alert, list alerts, mute, silence, check priority, investigate firing rules—to concrete cx alerts subcommands for listing, inspecting, creating, deleting, enabling, and disabling alert definitions in a Coralogix account. Use it when on-call engineers need to review which alerting rules are active, adjust thresholds, or debug alerts currently firing against logs and metrics. The skill assumes the cx CLI is installed and authenticated against a Coralogix workspace. It focuses on alert-definition CRUD and status checks, not log query authoring or dashboard design, making it a narrow operations companion for SRE and platform engineers living in Coralogix daily. Trigger phrases in the skill description span manage alerts, set up an alert, find alerting rules, see alert definitions, and check alert priority for editor-native incident response.

  • Full control over Coralogix alert definitions using cx CLI
  • Supports list, get, create (from JSON), delete, enable, disable, and suppression-rules
  • Query alert events and event statistics with time-range filters
  • Works with file-based or stdin JSON alert definitions
  • Directly invokes cx alerts and cx alerts suppression-rules subcommands

Cx Alerts by the numbers

  • 1,480 all-time installs (skills.sh)
  • +124 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #278 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/coralogix/cx-cli --skill cx-alerts

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.5k
repo stars113
Last updatedAugust 4, 2026
Repositorycoralogix/cx-cli

How do you manage Coralogix alerts from the CLI?

Create, list, modify, enable, disable, and investigate alerts inside a Coralogix observability account directly from Cursor or Claude Code.

Who is it for?

Platform engineers with Coralogix accounts who manage alerting rules via the cx CLI inside Cursor or Claude Code.

Skip if: Teams not on Coralogix or developers who only need log search without alert-definition management.

When should I use this skill?

The user asks to create, list, enable, disable, mute, or investigate Coralogix alerts using cx alerts commands.

What you get

Updated Coralogix alert definitions with enabled or disabled status and inspected firing alert metadata.

  • Coralogix alert definitions
  • Alert enable or disable status changes

By the numbers

  • Skill metadata version 0.1.0

Files

SKILL.mdMarkdownGitHub ↗

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

CommandPurposeKey flags
cx alerts listList all alert definitions--name <filter>
cx alerts get <id>Get a single alert definition by ID-
cx alerts createCreate 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 eventsList events; use alert-version scoped endpoint when filtering--alert-version-id, --start, --end
cx alerts event-statsGet alert event statistics-
cx alerts suppression-rules listList suppression rules-
cx alerts suppression-rules get <id>Get a suppression rule-
cx alerts suppression-rules createCreate a suppression rule--from-file <path>
cx alerts suppression-rules updateUpdate a suppression rule--from-file <path>
cx alerts suppression-rules delete <id>Delete a suppression rule-

Output format: append -o json or -o agents 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 enumHuman nameDescription
ALERT_DEF_TYPE_LOGS_IMMEDIATELogs ImmediateTrigger on every matching log entry
ALERT_DEF_TYPE_LOGS_THRESHOLDLogs ThresholdTrigger when log count exceeds a threshold in a time window
ALERT_DEF_TYPE_LOGS_ANOMALYLogs AnomalyML-based anomaly detection on log volume
ALERT_DEF_TYPE_LOGS_RATIO_THRESHOLDLogs Ratio ThresholdTrigger on ratio between two log queries
ALERT_DEF_TYPE_LOGS_NEW_VALUELogs New ValueTrigger when a new value appears in a field
ALERT_DEF_TYPE_LOGS_UNIQUE_COUNTLogs Unique CountTrigger on unique value count threshold
ALERT_DEF_TYPE_LOGS_TIME_RELATIVE_THRESHOLDLogs Time RelativeCompare current vs past time window
ALERT_DEF_TYPE_METRIC_THRESHOLDMetric ThresholdTrigger when a PromQL expression crosses a threshold
ALERT_DEF_TYPE_METRIC_ANOMALYMetric AnomalyML-based anomaly detection on metrics
ALERT_DEF_TYPE_TRACING_IMMEDIATETracing ImmediateTrigger on every matching span
ALERT_DEF_TYPE_TRACING_THRESHOLDTracing ThresholdTrigger when span count exceeds a threshold
ALERT_DEF_TYPE_FLOWFlowSequence-based alert combining multiple conditions

Priority Levels

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

PriorityUse case
P1Critical - pages on-call immediately
P2High - needs attention within the hour
P3Medium - investigate during business hours
P4Low - informational, check when convenient
P5Info - logging/tracking only

Create Workflow

1. Ask the user what they want to alert on (logs, metrics, traces) 2. Ask for priority (P1–P5) 3. Build the JSON payload with alertDefProperties - use the API wire format (see references/alert-schemas.md for all enum values) 4. Tip: use cx alerts get <existing-id> -o json to get a working template, modify it, and pipe into create 5. Create using: echo '<json>' | cx alerts create or cx alerts create --from-file alert.json 6. Verify with cx alerts list --name "<alert name>"

Important structural note: The type field is a string enum (e.g. "ALERT_DEF_TYPE_LOGS_THRESHOLD"), and the alert type config (e.g. "logsThreshold": {...}) is a sibling field at the same level - NOT nested inside type.

Example: Logs Threshold Alert

{
  "alertDefProperties": {
    "name": "High Error Rate",
    "description": "Alert when error logs exceed threshold",
    "priority": "ALERT_DEF_PRIORITY_P2",
    "type": "ALERT_DEF_TYPE_LOGS_THRESHOLD",
    "enabled": true,
    "logsThreshold": {
      "logsFilter": {
        "simpleFilter": {
          "luceneQuery": "severity:ERROR",
          "labelFilters": {
            "applicationName": [
              { "operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED", "value": "my-app" }
            ]
          }
        }
      },
      "rules": [{
        "condition": {
          "conditionType": "LOGS_THRESHOLD_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED",
          "threshold": 100,
          "timeWindow": {
            "logsTimeWindowSpecificValue": "LOGS_TIME_WINDOW_VALUE_MINUTES_5_OR_UNSPECIFIED"
          }
        }
      }]
    }
  }
}

Example: Metric Threshold Alert

{
  "alertDefProperties": {
    "name": "CPU Usage Critical",
    "priority": "ALERT_DEF_PRIORITY_P1",
    "type": "ALERT_DEF_TYPE_METRIC_THRESHOLD",
    "enabled": true,
    "metricThreshold": {
      "metricFilter": { "promql": "avg(cpu_usage_percent)" },
      "rules": [{
        "condition": {
          "conditionType": "METRIC_THRESHOLD_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED",
          "threshold": 90,
          "ofTheLast": { "dynamicDuration": "5m" },
          "forOverPct": 100
        }
      }]
    }
  }
}

Example: Logs Immediate Alert

{
  "alertDefProperties": {
    "name": "OOM Killer Detected",
    "description": "Alert immediately when OOM killer runs",
    "priority": "ALERT_DEF_PRIORITY_P1",
    "type": "ALERT_DEF_TYPE_LOGS_IMMEDIATE_OR_UNSPECIFIED",
    "enabled": true,
    "logsImmediate": {
      "logsFilter": {
        "simpleFilter": {
          "luceneQuery": "\"Out of memory\" OR \"OOM\"",
          "labelFilters": {}
        }
      }
    }
  }
}

Investigation Workflow

Find firing alerts

# List all alerts and look for ALERTING status
cx alerts list -o json | jq '.[] | select(.status == "ALERTING")'

# Filter by name
cx alerts list --name "error"

Inspect a specific alert

cx alerts get <alert-id>
cx alerts get <alert-id> -o json

Disable a noisy alert (temporary mute)

cx alerts disable <alert-id>
# Later, re-enable:
cx alerts enable <alert-id>

Suppression Rules

Manage alert suppression rules that mute alerts during maintenance windows or known noisy periods.

CommandPurpose
cx alerts suppression-rules listList all suppression rules
cx alerts suppression-rules get <id>Get a suppression rule by ID
cx alerts suppression-rules create --from-fileCreate a suppression rule
cx alerts suppression-rules update --from-fileUpdate a suppression rule
cx alerts suppression-rules delete <id>Delete a suppression rule
# List suppression rules
cx alerts suppression-rules list -o json

# Create from template
cx alerts suppression-rules get <existing-id> -o json > suppression-rule.json
# Edit suppression-rule.json
cx alerts suppression-rules create --from-file suppression-rule.json

Key Principles

  • Always ask for priority (P1–P5) when creating alerts - never assume
  • Use `--name` filter for large accounts with many alerts
  • Use `-o json` with `jq` for filtering and transformation
  • Use `--from-file -` to pipe JSON from stdin when constructing alerts programmatically
  • Verify after create - always list or get the alert after creation to confirm
  • Disable, don't delete - prefer disabling alerts over deletion for auditability

---

Additional Resources

Reference Files

  • [`references/alert-schemas.md`](references/alert-schemas.md) - Complete JSON schema reference for all 12 alert types: field names, enum values (condition types, time windows, filter operations), common sub-objects (logs filter, tracing filter, notification groups, activity schedules), and important gotchas
  • [`references/dataprime-reference.md`](references/dataprime-reference.md) - DataPrime query language reference for log-based and span-based alert conditions (filter syntax, operators, severity values)
  • [`references/logs-querying.md`](references/logs-querying.md) - Log data model, field discovery, and query patterns for building log alert conditions
  • [`references/promql-guidelines.md`](references/promql-guidelines.md) - PromQL reference for metric-based alert conditions (counters, gauges, histograms, threshold patterns)
  • [`references/spans-querying.md`](references/spans-querying.md) - Span data model, duration units, and query patterns for building tracing alert conditions

Related Skills

  • `cx-incident-management` - incident triage workflows that involve alerts, SLO monitoring, and notification verification
  • `cx-observability-setup` - setting up notification routing and webhook integrations for alerts
  • `cx-telemetry-querying` - investigate the telemetry behind a firing alert

Related skills

How it compares

Pick this over generic alerting tutorials when you already use Coralogix and need cx alerts CLI workflows from the editor.

FAQ

What CLI does cx-alerts use?

cx-alerts drives Coralogix alert management through the cx CLI cx alerts commands for listing, creating, enabling, disabling, and deleting alert definitions.

What alert actions does cx-alerts cover?

cx-alerts supports creating alerts, listing definitions, checking firing status, enabling and disabling rules, and mute or silence workflows for active Coralogix alerts.

What version is the cx-alerts skill?

cx-alerts skill metadata declares version 0.1.0 and targets Coralogix alert-definition management from Cursor or Claude Code terminals.

Cloud & Infrastructuremonitoringinfra

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.