feat: Agent采集uptime, 后端持久化kernel/uptime/diskIO, 前端磁盘BPS+IOPS展示
- Agent: system.go 添加 readUptime(), SystemStat 携带 Uptime - Backend: Server 模型新增 Kernel 字段, ReceiveReport 持久化 kernel+uptime - Backend: /agent/latest 返回 kernel/uptime/port_info/disk_io_info/disk_total - Frontend: 磁盘监控改为 BPS+IOPS (4张卡片), 系统信息修复内核/运行时长/监听端口/磁盘容量 - 图表单位从 MB/s 改为 KB/s, 添加 formatBPS 工具函数
This commit is contained in:
1 parent
31c2e338a3
commit
5949ec5d0c
48 files changed
+2182
-956
No files matched your search
@@ -92,7 +92,7 @@ type SNMPDevice struct {
|
||||
|
||||
// TableName 指定表名
|
||||
func (SNMPDevice) TableName() string {
|
||||
return "snmp_devices"
|
||||
return "ops_snmp_devices"
|
||||
}
|
||||
|
||||
// ============================================
|
||||
@@ -120,7 +120,7 @@ type SNMPTemplate struct {
|
||||
|
||||
// TableName 指定表名
|
||||
func (SNMPTemplate) TableName() string {
|
||||
return "snmp_templates"
|
||||
return "ops_snmp_templates"
|
||||
}
|
||||
|
||||
// SNMPTemplateOID OID模板条目表
|
||||
@@ -142,7 +142,7 @@ type SNMPTemplateOID struct {
|
||||
|
||||
// TableName 指定表名
|
||||
func (SNMPTemplateOID) TableName() string {
|
||||
return "snmp_template_oids"
|
||||
return "ops_snmp_template_oids"
|
||||
}
|
||||
|
||||
// ============================================
|
||||
@@ -170,7 +170,7 @@ type SNMPMetric struct {
|
||||
|
||||
// TableName 指定表名
|
||||
func (SNMPMetric) TableName() string {
|
||||
return "snmp_metrics"
|
||||
return "ops_snmp_metrics"
|
||||
}
|
||||
|
||||
// ============================================
|
||||
@@ -199,7 +199,7 @@ type SNMPInterface struct {
|
||||
|
||||
// TableName 指定表名
|
||||
func (SNMPInterface) TableName() string {
|
||||
return "snmp_interfaces"
|
||||
return "ops_snmp_interfaces"
|
||||
}
|
||||
|
||||
// ============================================
|
||||
|
||||
Reference in new issue
Block a user