Rename to hkt.sh
This commit is contained in:
32
projects/oc-monitor/oc-monitor-post/copy.html
Normal file
32
projects/oc-monitor/oc-monitor-post/copy.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<html><body><pre style="font-size:14px;white-space:pre-wrap;font-family:monospace;padding:20px">手上有几台 VPS 都跑着 OpenClaw,想搞个统一的面板看看各节点状态。跟 OpenClaw 描述了一下需求,它直接帮我从零撸了一套出来,前后端+Agent 全包了。
|
||||
|
||||
## 效果
|
||||
|
||||
- 节点总览:CPU/内存/磁盘/Swap 实时仪表盘
|
||||
- 供应商矩阵:各节点 API 供应商健康状态、响应延迟
|
||||
- 请求日志:完整 API 调用记录,输入/输出/缓存读写 Token 统计,分页+筛选
|
||||
- WebSocket 实时推送,10秒心跳
|
||||
- 未登录可看脱敏面板(IP隐藏),Token 解锁完整视图
|
||||
- 暗色/亮色主题切换
|
||||
- 手机/桌面自适应
|
||||
|
||||
## 架构
|
||||
|
||||
Server(Node.js + SQLite + WebSocket)Docker 一键部署
|
||||
Agent(Bash + Python3)每个节点装一个,自动检测 OpenClaw 配置,macOS/Linux 通吃
|
||||
|
||||
## 安装
|
||||
|
||||
Server:
|
||||
|
||||
```bash
|
||||
curl -sL https://git.088520.xyz/admin/oc-monitor/raw/branch/main/install.sh | bash
|
||||
```
|
||||
|
||||
Agent:
|
||||
|
||||
```bash
|
||||
curl -sL https://git.088520.xyz/admin/oc-monitor/raw/branch/main/install-agent.sh | bash -s -- -s http://服务器IP:3800 -t TOKEN -n "节点名"
|
||||
```
|
||||
|
||||
前端纯原生 HTML/CSS/JS,零依赖,单文件 ~300 行。Agent 也是零依赖,Bash+Python3 搞定。</pre></body></html>
|
||||
Reference in New Issue
Block a user