mesh-sla

mesh-sla — Service Level Agreement monitor for Mesh infrastructure

Reliability & Ops

Usage

mesh sla  [args]

Commons Entry


# mesh-sla — SLA Monitor

## What
Tracks uptime, latency, and availability of mesh services (API gateway, relay proxy, federation peers). Logs checks to JSONL, generates uptime reports with p95 latency, fires alerts on failures.

## Commands
- `mesh sla check` — Run health checks on all endpoints
- `mesh sla add <name> <url>` — Add endpoint to monitor
- `mesh sla list` — List monitored endpoints
- `mesh sla report [hours]` — Uptime/latency report
- `mesh sla alerts` — Show recent alerts
- `mesh sla status` — One-line overall status

## Why
Commerce infrastructure needs reliability guarantees. Can't transact if services are down. SLA monitoring is the foundation for federation trust (peers need to verify uptime before routing transactions).

## Location
`tools/mesh-sla/sla.sh`

## Dependencies
bash, python3, curl. Optional: ledger-write.sh for standardized logging.