agent-health-monitor
Full-stack health monitoring for AI agent infrastructure. Monitors API keys, wallet balances, daemon processes, cron jobs, disk space, and service endpoints. Auto-alerts via Telegram/Discord when thresholds breach. Use when an agent needs operational monitoring, infrastructure health checks, automated alerting, or recovery from system failures.
Works with
--- name: agent-health-monitor description: Full-stack health monitoring for AI agent infrastructure. Monitors API keys, wallet balances, daemon processes, cron jobs, disk space, and service endpoints. Auto-alerts via Telegram/Discord when thresholds breach. Use when an agent needs operational monitoring, infrastructure health checks, automated alerting, or recovery from system failures. license: MIT --- # Agent Health Monitor ## Overview Unified monitoring stack for autonomous AI agents. Tracks 20+ health signals across APIs, wallets, processes, and services. Auto-restarts dead daemons, alerts on failures, and generates daily reports. ## Core Capabilities ### 1. API Key Health Tests 8 APIs every 4 hours: | Service | Test | Fail Action | |---------|------|-------------| | Alchemy | RPC call | Alert + check fallback RPC | | Groq | Chat completion | Switch to Mistral | | Mistral | Chat completion | Switch to Groq | | OpenRouter | Model list | Disable free-tier models | | GitHub | Rate limit check | Alert token expiry | | Dune | Query status | Alert if credits low | | Bankr | Wallet balance | Alert if mining stops | | MeshLedger | Service ping | Alert marketplace down | ### 2. Wallet Balance Monitor Monitors all agent wallets: - Base L2 ETH for gas - USDC balance - LITCOIN holdings - NOOK tokens - cbETH staked Alerts when gas < $0.50 equivalent. ### 3. Daemon Process Monitor Supervisor (`scripts/supervisor.sh`) tracks: - AWP mine-skill (auto-skill mining) - 0xWork auto-tasker (task marketplace) - Nookplot auto-contributor (knowledge mining) - Litcoiin hybrid miner (proof-of-comprehension) Auto-restarts dead processes within 5 minutes. ### 4. Cron Stack Integrity 20 cron jobs monitored: - Backup jobs (wallet, secondary) - Health checks (API, balance, x402) - Revenue reporting (daily 8am) - Arb dry-run tests - Model enabler (free tier refresh) Alerts if any job misses 2 consecutive runs. ### 5. Disk & Resource Monitor - Disk usage > 80% → alert - Memory > 90% → alert + restart non-critical services - Log rotation: compress logs > 7 days old ## Alert Channels | Channel | Config | Use | |---------|--------|-----| | Telegram | `TELEGRAM_BOT_TOKEN` + `TELEGRAM_CHAT_ID` | Critical alerts | | Discord | `DISCORD_WEBHOOK_URL` | Status summaries | | Log | `logs/alerts/` | All events archived | ## Workflow ### Setup ```bash # 1. Configure alerts export TELEGRAM_BOT_TOKEN=... export TELEGRAM_CHAT_ID=... export DISCORD_WEBHOOK_URL=... # 2. Install systemd services sudo ./scripts/install-services.sh # 3. Start monitoring ./scripts/master_monitor.py ``` ### Daily Operations ```bash # Check all systems ./scripts/supervisor.sh status # View last 24h alerts ./scripts/alert.sh summary # Test specific service python3 scripts/api_key_monitor.py --check groq ``` ### Recovery Procedures | Failure | Auto-Action | Manual Fallback | |---------|-------------|-----------------| | API key expired | Switch to backup model | Rotate key via dashboard | | Daemon crashed | Restart via supervisor | Check logs, fix code | | Wallet empty | Alert only | Fund via ClawBank | | Cron missed | Alert + retry | Check crontab integrity | ## Scripts - `scripts/supervisor.sh` — Daemon supervisor + auto-restart - `scripts/healthcheck.py` — API health checker - `scripts/balance-monitor.py` — Wallet balance tracker - `scripts/api_key_monitor.py` — API key tester - `scripts/master_monitor.py` — Unified monitor runner - `scripts/alert_bot.py` — Telegram/Discord alert dispatcher - `scripts/revenue_reporter.py` — Daily earnings aggregation ## References - `references/alert-config.md` — Channel setup and webhook formats - `references/recovery-playbook.md` — Common failure scenarios and fixes ## Stats - **20 cron jobs** across 6 categories - **4 production daemons** supervised - **8 APIs** monitored every 4h - **5 wallets** tracked for gas + balances - **Average alert latency:** < 5 minutes
More Observability skills
google-agents-cli-observability
google/agents-cli
>
azure-observability
microsoft/azure-skills
Azure Observability Services including Azure Monitor, Application Insights, Log Analytics, Alerts, and Workbooks. Provides metrics, APM, distributed tracing, KQL queries, and interactive reports. USE FOR: Azure Monitor, Application Insights, Log Analytics, Alerts, Workbooks, metrics, APM, distributed tracing, KQL queries, interactive reports, observability, monitoring dashboards. DO NOT USE FOR: instrumenting apps with App Insights SDK (use appinsights-instrumentation), querying Kusto/ADX clusters (use azure-kusto), cost analysis (use azure-cost-optimization).
social
coreyhaines31/marketingskills
When the user wants help creating, scheduling, or optimizing social media content for LinkedIn, Twitter/X, Instagram, TikTok, Facebook, or other platforms, or wants to do social listening and engagement triage. Also use when the user mentions 'LinkedIn post,' 'Twitter thread,' 'social media,' 'content calendar,' 'social scheduling,' 'engagement,' 'viral content,' 'what should I post,' 'repurpose this content,' 'tweet ideas,' 'LinkedIn carousel,' 'social media strategy,' 'grow my following,' 'TikTok video,' 'Reels,' 'Shorts,' 'video script,' 'video hook,' 'short-form video,' 'create a reel,' 'social listening,' 'brand mentions,' 'competitor monitoring,' 'top posts to comment on,' 'find people asking for,' 'carousel,' 'slide-by-slide,' or 'document post.' Use this for social media content creation, repurposing, scheduling, short-form video scripting, and social listening. For broader content strategy, see content-strategy. For paid ads, see ad-creative. For earned media, see public-relations.

