Use this command to check the health of infrastructure machines, track CPU/memory/disk usage, and identify distressed nodes.
This command requires the cloud prefix: agentuity cloud monitor ...
Quick Reference
agentuity cloud monitor [options]| Option | Description |
|---|---|
--machine <id> | Monitor a specific machine by ID |
--deployment <id> | Monitor machines running a specific deployment |
--distressed | Show only distressed machines |
--snapshot | One-shot snapshot (no live stream) |
--json | JSON output |
Monitoring Modes
Watch Mode (Default)
Without --snapshot, the monitor connects to a live WebSocket stream and continuously updates the terminal as machine state changes.
# Watch all machines in real time
agentuity cloud monitor
# Watch a single machine
agentuity cloud monitor --machine mach_abc123The live display shows a table with: Machine ID, Health, CPU %, Memory %, Disk %, Pressure score, Container count, and Last Report time.
Press Ctrl+C to stop watching.
In watch mode, state transitions (e.g., CONNECTED to STALE) are highlighted inline so you can spot problems as they happen.
Snapshot Mode
Use --snapshot to print the current state once and exit. This is useful for scripting and CI checks.
# Print current state and exit
agentuity cloud monitor --snapshotFiltering
By Machine
Focus on a single machine by ID:
agentuity cloud monitor --machine mach_abc123By Deployment
Show only machines that are running containers for a specific deployment:
agentuity cloud monitor --deployment dep_xyz789Distressed Only
Filter to machines in a distressed state:
agentuity cloud monitor --distressed--machine and --distressed cannot be combined. Similarly, --deployment and --distressed cannot be combined. Use one filter at a time.
Health States
| State | Indicator | Meaning |
|---|---|---|
CONNECTED | ● | Machine is healthy and reporting |
STALE | ◌ | Reports are delayed, may indicate issues |
DISCONNECTED | ○ | Machine is not reporting |
Pressure Score
Each machine has a composite pressure score from 0.00 to 1.00. Scores at or above 0.85 are flagged with a warning indicator. High pressure typically means the machine is approaching resource limits for CPU, memory, or disk.
JSON Output
Combine --json with --snapshot (or use --json alone, which implies snapshot behavior) for machine-readable output:
agentuity cloud monitor --json[
{
"machineId": "mach_abc123",
"health": "CONNECTED",
"compositeScore": 0.42,
"report": {
"host": {
"cpu": { "usagePercent": 35.2 },
"memory": { "usagePercent": 61.8 }
},
"capacity": {
"runningContainers": 3,
"totalContainers": 10
}
}
}
]Next Steps
- Debugging: SSH into containers and inspect sessions for deployed agents
- Deployment: Deploy your agents to Agentuity Cloud