mesh-alerts — Threshold-based alerting on Mesh metrics and health signals
mesh alerts [args]
add, remove, list, check, history, status, silence, unsilence
# mesh-alerts — Threshold-Based Alerting
**Layer:** Infrastructure (Observability)
**CLI:** `mesh alerts|alert|al`
**Tool:** `tools/mesh-alerts/alerts.sh`
## Purpose
Threshold-based alerting on mesh metrics and health signals. Define rules, evaluate against current data, track alert history. Supports silence windows.
## Commands
| Command | Description |
|---------|-------------|
| `add <name> <metric> <op> <threshold> [severity]` | Add alert rule |
| `remove <name>` | Remove rule |
| `list` | List all rules |
| `check` | Evaluate rules against metrics |
| `history [n]` | Last N fired alerts |
| `status` | System overview |
| `silence <name> [minutes]` | Mute a rule |
| `unsilence <name>` | Unmute a rule |
## Integration
- Reads from mesh-metrics JSONL ledger
- Reads mesh health score from health-log
- Own JSONL alert history at `data/alerts/alerts.jsonl`
- Operators: gt, lt, gte, lte, eq
- Severities: critical, warning, info