- apps/api: FastAPI backend with Dockerfile - apps/web: Next.js frontend with Dockerfile - apps/sensor: Signal collection agent - packages: shared packages Co-Authored-By: Claude <noreply@anthropic.com>
AWOOOI Sensor Agent
Phase 6.5 神經末梢 - 極度輕量的告警採集代理
設計原則
嚴禁邏輯:
├── Incident 聚合 → 188 大腦負責
├── GraphRAG 分析 → 188 大腦負責
└── 任何決策邏輯 → 188 大腦負責
唯一職責:
└── 採集本地告警 → 無腦 XADD → 188 Event Bus
快速開始
# 1. 安裝依賴 (僅需 redis-py)
pip install -r requirements.txt
# 2. 設定 188 基地連線
export AWOOOI_REDIS_URL="redis://192.168.68.188:6379/0"
# 3. 發射測試告警
python agent.py
# 4. 持續監控模式
python agent.py --loop --interval 30
部署架構
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Host 118 │ │ Host 119 │ │ Host 120 │
│ Sensor │ │ Sensor │ │ Sensor │
└──────┬──────┘ └──────┬──────┘ └──────┬──────┘
│ │ │
│ XADD (跨網段) │
└───────────────────┼───────────────────┘
▼
┌────────────────────────┐
│ Host 188 (基地) │
│ Redis Event Bus │
│ stream:awoooi_signals│
└────────────────────────┘