patinas-ctl
Control CLI for health, metrics snapshots, KPI sampling, and chaos/capture plans.
- Subcommands:
health --addr <host:port>— GET /healthzmetrics-snapshot --addr <host:port> --out <file>— dump /metricskpi-sample --endpoints <proxy,hub> --interval-s <n> --duration-s <n> --out <csv>— sample KPIschaos-plan --profile <yaml> --endpoints <...> --out-csv <csv> --out-html <html>capture-plan --out <pcapng> --since <duration>— emits tcpdump command (plan)
- Defaults: proxy 9640, hub 9641
Examples:
patinas-ctl health --addr 127.0.0.1:9640
patinas-ctl metrics-snapshot --addr 127.0.0.1:9641 --out hub.prom
patinas-ctl kpi-sample --endpoints 127.0.0.1:9640,127.0.0.1:9641 --interval-s 2 --duration-s 30 --out kpi.csv
## Passivations control (start/stop/rotate)
These commands drive `passivationsd --http <addr>` control endpoints.
```bash
# If Passivations enforces auth, set a bearer token (either flag or env):
# export PASSIVATIONS_HTTP_TOKEN="..."
# Rotate the current segment boundary (MKV-safe) for logical session cam-1
patinas-ctl passivations --addr 127.0.0.1:9660 --id cam-1 --action rotate --reason manual
# Stop ingest + finalize the current session
patinas-ctl passivations --addr 127.0.0.1:9660 --id cam-1 --action stop
# Start a new session boundary and resume ingest
patinas-ctl passivations --addr 127.0.0.1:9660 --id cam-1 --action start