Infrastructure Monitoring — Agentuity Documentation

Infrastructure Monitoring

Monitor machine health and resource usage from the CLI in real time or as a snapshot

Use this command to check the health of infrastructure machines, track CPU/memory/disk usage, and identify distressed nodes.

Quick Reference

agentuity cloud monitor [options]
OptionDescription
--machine <id>Monitor a specific machine by ID
--deployment <id>Monitor machines running a specific deployment
--distressedShow only distressed machines
--snapshotOne-shot snapshot (no live stream)
--jsonJSON 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_abc123

The 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.

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 --snapshot

Filtering

By Machine

Focus on a single machine by ID:

agentuity cloud monitor --machine mach_abc123

By Deployment

Show only machines that are running containers for a specific deployment:

agentuity cloud monitor --deployment dep_xyz789

Distressed Only

Filter to machines in a distressed state:

agentuity cloud monitor --distressed

Health States

StateIndicatorMeaning
CONNECTEDMachine is healthy and reporting
STALEReports are delayed, may indicate issues
DISCONNECTEDMachine 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