fix: favicon .ico 生成 + README 更新 + run.sh kubernetes 别名
- 新增 frontend/public/favicon.ico (4 size: 16/32/48/64) - index.html .ico 引用调整到 .svg 前面(兼容旧浏览器) - README.md 全量更新:Kubernetes 完整命令列表 + K8s 管理亮点 - run.sh 主入口添加 k8s 别名(向后兼容) - aiops-development skill 更新部署命令和 favicon 文档
This commit is contained in:
1 parent
f061785266
commit
65636b3f5a
14 files changed
+458
-521
No files matched your search
@@ -1832,3 +1832,39 @@ cd ~/devops/aiops
|
||||
- EZOps → AIOps 全局替换: frontend/backend/agent/scripts 全量扫描替换
|
||||
- 小写 ezops(Go module path/launchd plist/JWT secret)保留不改避免破坏编译/运行时
|
||||
- WebShell 欢迎语/Login 标题/LLM system prompt 全部统一为 AIOps
|
||||
|
||||
|
||||
## 2026-06-24 Agent v2.2 — 8 项新采集指标 + 端口策略 + 索引审计
|
||||
|
||||
### Agent 新增指标
|
||||
- **cpu.iowait** — /proc/stat field[4] 独立追踪,解耦高负载根因(计算 vs 磁盘瓶颈)
|
||||
- **memory.available_gb** — /proc/meminfo MemAvailable(含可回收缓存,真实可用内存)
|
||||
- **memory.swap_used_gb** — swap 已用 → OOM 金标准
|
||||
- **disk[*].inode_usage_pct** — statfs.Files/Ffree 计算,防文件数爆炸
|
||||
- **disk_io.util** — /proc/diskstats field[12] io_ticks 增量/时间 * 100%
|
||||
- **net.connection.total** — EST+TIME_WAIT+CLOSE_WAIT 汇总
|
||||
- **net.rx_errors / net.tx_errors** — /proc/net/dev fields[2]/[10],物理层故障告警
|
||||
|
||||
### 前端 HostMonitor 增强
|
||||
- 基础监控: +CPU IO等待(%) +可用内存(GB) +Swap使用率(%)
|
||||
- 磁盘监控: +Inode使用率(%)
|
||||
- 网络监控: TCP 四格(EST/TIME_WAIT/CLOSE_WAIT/总连接) + 带宽双线 + 错误(rx/tx)
|
||||
- 主机名粗体显示
|
||||
|
||||
### 端口监控策略
|
||||
- Agent 系统进程排除: sshd/rpcbind/master/systemd 等 18 个永远不上报
|
||||
- 白名单模式(默认): 全量上报
|
||||
- 黑名单模式: 仅选中端口上报 + 告警
|
||||
- 后端 PullPortPolicy: GET /api/v1/agent/port-policy?hostname=xxx
|
||||
- 前端策略配置: 白名单只读灰掉,黑名单可输入端口列表
|
||||
- DB 表: monitor_agent_port_policy (hostname UNIQUE + port_filter_mode + port_whitelist JSON)
|
||||
|
||||
### 数据库索引审计
|
||||
- 新增: asset_servers.ip + agent_status, sys_audit_logs.created_at, monitor_alert_contacts.channel_type, ops_task_executions.task_id + status
|
||||
- 清理: 20 个冗余重复索引 (GORM 改名残留)
|
||||
- K8s 表无需索引 (走 K8s API 不查 DB)
|
||||
|
||||
### Redis 缓存现状
|
||||
- ✅ 已用: Agent 指标 Sorted Set (TTL 7天) + 流水线日志 pub/sub
|
||||
- ❌ 未缓存: /servers 列表, /dashboard/stats, 告警中心
|
||||
- 待优化: 高频只读接口加 5-30s Redis 缓存
|
||||
Reference in new issue
Block a user