← всі звіти · index.md

Resource Usage Dashboard

Коротко: одна HTML-сторінка з моніторингом споживання ресурсів AI-агентами на AG Dev Hub. Статус: Phase 1 MVP live з 2026-04-20. URL: http://31.131.26.203/dashboard/

Стек

Директорії

/srv/services/resource-dashboard/
├── app.py                # FastAPI, routes: /, /api/snapshot, /healthz
├── refresh.py            # cron entrypoint
├── db.py                 # SQLite schema + helpers
├── collectors/
│   ├── common.py
│   ├── replicate.py      # ЖИВИЙ: predictions 30d + GPU-sec
│   ├── telegram.py       # ЖИВИЙ: getMe × 4 bots
│   ├── github.py         # ЖИВИЙ: rate_limit + PAT countdown
│   ├── supabase.py       # ЖИВИЙ: REST ping
│   ├── system.py         # ЖИВИЙ: CPU/RAM/disk/net/uptime/top-procs (psutil)
│   └── security.py       # ЖИВИЙ: SSH failures, fail2ban, UFW, ss -tulnp, certs
├── templates/dashboard.html
├── static/style.css      # OKLCH palette, dark mode, responsive
├── data.db               # SQLite
└── README.md

Що працює (Phase 1)

Що чекає на доступи від Сергія

  1. Anthropic Admin API key (sk-ant-admin…) — Claude Console → Settings → Admin Keys. → покладе /srv/passepartout/anthropic/admin.key.
  2. GCP Billing — SA з roles/billing.viewer + BigQuery Billing Export (corp + personal окремо).
  3. Gemini — міграція на Vertex AI (старий ключ заблокований).
  4. GitHub PAT rotation — до 10-11 травня 2026.

Повний discovery: /srv/reports/resource-dashboard-discovery.md

Безпека

Команди

systemctl status resource-dashboard resource-dashboard-refresh.timer
systemctl start resource-dashboard-refresh.service   # manual refresh
tail -f /var/log/resource-dashboard/refresh.log
curl http://127.0.0.1/dashboard/api/snapshot | jq