| name | ed-monitors |
| description | Monitors - create, manage, snooze and resolve Edge Delta monitors and alerts. |
| metadata | {"version":"1.0.0","author":"edgedelta","repository":"https://github.com/edgedelta/agent-skills","tags":"edgedelta,monitors,alerts,alerting","alwaysApply":"false"} |
Edge Delta Monitors
Create, inspect, update and delete monitors; view triggered/resolved states.
Prerequisites
The edx CLI must be installed and authenticated. See the ed-edx skill.
Inspect
edx monitors list --output table
edx monitors get <monitor-id>
edx monitors states
edx monitors states -q 'monitor.status:"alert"'
Create / Update
Monitor definitions are JSON. The reliable workflow is clone-and-edit:
edx monitors get <id> > monitor.json
edx monitors create --file monitor.json
edx monitors update <id> --file monitor.json
Monitor queries use the same CQL as search commands - validate the query
first by running it:
edx logs graph -q 'severity_text:"ERROR" AND service.name:"api"' --lookback 1h
If the graph returns sensible numbers, the monitor query will too.
Metric Threshold Monitors
A metric_threshold monitor carries its query in formula_query (scope
metric) plus a window and thresholds:
{
"name": "API Errors",
"type": "metric_threshold",
"evaluation_type": "sliding_window",
"evaluation_function": "sum",
"evaluation_window": 900,
"threshold_type": "above",
"warning_threshold": 3,
"alert_threshold": 10,
"no_data_behavior": "show_no_data",
"formula_query": {
"formula": "A",
"queries": {"A": {"scope": "metric",
"query": "sum:api.error.count{service.name:\"api\"}.rollup(60)"}}
}
}
Evaluation is not real-time. A freshly created monitor showing "No Data" is
normal until its next scheduled evaluation. To confirm the query resolves and
would (or wouldn't) fire right now, dry-run it (requires edx >= 0.10.0):
edx monitors evaluate <monitor-id>
Delete
edx monitors delete <monitor-id> --yes
Alert Triage
When an alert fires:
edx monitors get <id> - what condition fired? what query?
edx events search -q 'event.domain:"Monitor Alerts"' --lookback 2h -
correlated alerts around the same time?
- Run the monitor's underlying query yourself with a wider window to see
the trend (
edx logs graph / edx metrics query).
- Pivot to the ed-investigate skill for full root-cause analysis.
Good Practices
- Alert on symptoms (error rate, latency) not causes (CPU).
- Scope queries with
service.name/ed.tag to keep alerts actionable.
- Bounded group-by keys only - high-cardinality grouping creates alert storms.