pilot-heartbeat-monitor
Installation
SKILL.md
pilot-heartbeat-monitor
Monitor agent health via periodic heartbeats and detect failures using timeout-based detection.
Commands
Send heartbeat to peers
pilotctl --json publish "registry-hostname" "heartbeat:$SWARM_NAME" \
--data "{\"agent\":\"$AGENT_ID\",\"timestamp\":\"$(date -u +%s)\",\"status\":\"alive\"}"
Detect failed agents
TIMEOUT=30
CURRENT_TIME=$(date -u +%s)