Module 3: Monitoring, Alerting & Rollback

Implement observability and rollback runbook.

Commands are templates. Replace IDs, secrets and endpoints with your environment values.

Hands-on Steps (Directly Runnable)

Execute each command, capture output, then note issues and fixes.

Step 1: Enable metrics endpoint

Run:
export ZEROCLAW_METRICS=1\nzeroclaw start

Copyable commands
export ZEROCLAW_METRICS=1
zeroclaw start

Step 2: Probe metrics

Run:
curl -f http://localhost:9090/metrics | head

Copyable commands
curl -f http://localhost:9090/metrics | head

Step 3: Create alert rules

Run:
Define alert: error_rate > 5% for 5m; p95_latency > 2s.

Step 4: Rollback simulation

Run:
zeroclaw release rollback --to previous --dry-run

Copyable commands
zeroclaw release rollback --to previous --dry-run

Track completed

Turn the commands on this page into your team runbook.

ZeroClaw Module 3: Monitoring, Alerting & Rollback | BestClaw