更新 README.md
This commit is contained in:
21
README.md
21
README.md
@@ -16,7 +16,7 @@
|
||||
- **操作系统信息**:版本、架构、完整名称
|
||||
- **HTTP API**:提供本地数据查询接口
|
||||
|
||||
### 后端服务(Backend)
|
||||
### 服务端(Backend)
|
||||
- **数据收集**:接收Agent上报的监控数据
|
||||
- **数据存储**:将设备token、账号密码(正式版实现)等关键数据记录到MySQL,监控时序数据存储到InfluxDB
|
||||
- **Web界面**:实时监控仪表盘
|
||||
@@ -29,20 +29,23 @@
|
||||
```mermaid
|
||||
flowchart LR
|
||||
subgraph 代理层
|
||||
LinuxAgent["Linux 代理"]
|
||||
WindowsAgent["Windows 代理"]
|
||||
style 代理层 stroke:#333,stroke-width:2px,shape:rectangle,labelPos:top
|
||||
LinuxAgent["Linux 代理程序"]
|
||||
WindowsAgent["Windows 代理程序"]
|
||||
end
|
||||
|
||||
BackendServer["Backend Server"]
|
||||
BackendServer["服务端"]
|
||||
style BackendServer stroke:#333,stroke-width:2px,shape:rectangle
|
||||
|
||||
subgraph 数据存储层
|
||||
subgraph 存储层
|
||||
style 存储层 stroke:#333,stroke-width:2px,shape:rectangle
|
||||
MySQL["MySQL"]
|
||||
InfluxDB["InfluxDB"]
|
||||
end
|
||||
|
||||
WebConsole["Web Console<br/>(数据可视化与管理界面)"]
|
||||
WebConsole["Web 控制台<br/>(数据可视化与管理界面)"]
|
||||
style WebConsole stroke:#333,stroke-width:2px,shape:rectangle
|
||||
|
||||
%% 链路连接
|
||||
LinuxAgent --> BackendServer
|
||||
WindowsAgent --> BackendServer
|
||||
BackendServer --> MySQL
|
||||
@@ -127,7 +130,7 @@ curl http://agent-host:8081/processes
|
||||
Agent支持通过命令行参数配置:
|
||||
|
||||
```
|
||||
-server # 后端服务器地址
|
||||
-server # 服务端地址
|
||||
-interval # 数据上报间隔
|
||||
-port # 本地API服务端口(默认8081)
|
||||
-log-level # 日志级别(debug, info, warn, error)
|
||||
@@ -171,7 +174,7 @@ monitor/
|
||||
│ ├── main.go # 主程序
|
||||
│ ├── go.mod # 依赖管理
|
||||
│ └── agent-windows.exe # 编译后的可执行文件
|
||||
└── backend/ # 后端服务
|
||||
└── backend/ # 服务端
|
||||
├── main.go # 主程序
|
||||
├── config/ # 配置模块
|
||||
├── internal/ # 内部模块
|
||||
|
||||
Reference in New Issue
Block a user