@@ -73,13 +139,72 @@
import { ref } from 'vue'
const alerts = ref([
- { time: '07:38:55', message: '[Zabbix] yzh-las-014 风扇转速低于阈值(FAN_6: 1920 RPM)', class: '' },
- { time: '07:38:55', message: '[Zabbix] yzh-las-014 风扇转速低于阈值(FAN_5: 1880 RPM)', class: '' },
- { time: '07:30:00', message: '[qpass] 告警已合并推送:1 条硬件告警 + 0 条业务告警', class: '' },
+ { time: '07:38:55', message: '[qpass] P0 告警推送:sg-las-overseas-007 磁盘只读 / IO 错误', class: 'err' },
+ { time: '07:35:12', message: '[qpass] P1 告警推送:yzh-las-014 风扇转速低于阈值(FAN_6: 1920 RPM)', class: '' },
+ { time: '07:21:40', message: '[qpass] P1 告警推送:xs-bm-291 电源冗余丢失(PSU2 离线)', class: '' },
+ { time: '07:18:03', message: '[qpass] P1 告警推送:redis-ads-feature-cluster-02 慢查询比例超阈值', class: '' },
+ { time: '07:10:22', message: '[qpass] average 告警推送:overseas-dallas-idc 专线延迟抖动超基线', class: '' },
+ { time: '06:58:47', message: '[qpass] average 告警推送:jf-bm-118 CPU 温度接近阈值(76℃ / 80℃)', class: '' },
{ time: '06:15:22', message: '[Nightingale] sg-las-007 CPU 使用率恢复(当前 42%)', class: 'ok' },
{ time: '05:48:10', message: '[Nightingale] sg-las-007 CPU 使用率超过 90% 持续 5 分钟', class: '' },
])
diff --git a/frontend/src/views/monitor/Monitor.vue b/frontend/src/views/monitor/Monitor.vue
index 38480ea..b77ce51 100644
--- a/frontend/src/views/monitor/Monitor.vue
+++ b/frontend/src/views/monitor/Monitor.vue
@@ -2,71 +2,196 @@
-
监控
-
VictoriaMetrics 指标 · Zabbix 硬件状态
+
监控看板
+
物理机 / 虚机 / 基础服务状态汇总 · 夜莺(Nightingale)统一告警引擎对接 Zabbix + VictoriaMetrics · 最近更新于 18 秒前
+
+
+
+
+
+
+
物理机总数
+
186
+
186 / 186 监控覆盖
+
+
+
虚机总数(LAS)
+
512
+
↑ 14 本周新增
+
+
+
基础组件实例
+
214
+
MySQL 38 · Redis 92 · 其他 84
-
+
-
VictoriaMetrics · 指标概览
- K8s / 容器 / 业务指标
+ 物理机状态 · 按机房
+ 数据源:Zabbix
-
-
- | 七机房采集节点数 |
- 128 |
-
-
- | 活跃时序数量 |
- 42.6M |
-
-
- | Prometheus 接口接入 |
- ● 正常 |
-
-
- | Grafana 仪表盘数 |
- 37 |
-
-
+
+ | 机房 |
+ 总数 |
+ 在线 |
+ 健康率 |
+ 状态 |
+
+
+ | YZH 机房 |
+ 78 |
+ 78 |
+
+
+ 98%
+ |
+ ● 正常 |
+
+
+ | XS 机房 |
+ 64 |
+ 63 |
+
+
+ 91%
+ |
+ ● 1 条告警 |
+
+
+ | JF 机房 |
+ 22 |
+ 22 |
+
+
+ 100%
+ |
+ ● 正常 |
+
+
+ | 海外 IDC(4) |
+ 22 |
+ 21 |
+
+
+ 86%
+ |
+ ● 1 条严重 |
+
-
Zabbix · 硬件健康
- IPMI / 温度 / 电源 / 风扇
+ 虚机状态 · LAS 资源池
+ 数据源:VictoriaMetrics
-
-
- | 物理机监控覆盖 |
- 186 / 186 |
-
-
- | 当前告警 |
- ● 2 条(风扇转速异常) |
-
-
- | 网络设备健康 |
- ● 正常 |
-
-
- | 存储健康度 |
- ● 正常 |
-
-
+
+ | 业务线 |
+ 虚机数 |
+ CPU 均值 |
+ 状态 |
+
+
+ | Kodo |
+ 218 |
+
+
+ 64%
+ |
+ ● 正常 |
+
+
+ | LAS |
+ 164 |
+
+
+ 82%
+ |
+ ● 1 条告警 |
+
+
+ | 灵矽 |
+ 96 |
+
+
+ 57%
+ |
+ ● 正常 |
+
+
+ | 共享池 / 未分配 |
+ 34 |
+
+
+ 31%
+ |
+ ● 正常 |
+
+
+
+
基础服务状态汇总
+ MySQL / Redis / 中间件 · 探活数据源:VictoriaMetrics
+
+
+
+
+ | 服务类型 |
+ 实例数 |
+ 异常 |
+ 可用率 |
+ 状态 |
+
+
+ | MySQL |
+ 38 |
+ 0 |
+ 100% |
+ ● 正常 |
+
+
+ | Redis(CacheCloud) |
+ 92 |
+ 1 |
+ 98.9% |
+ ● 1 条告警 |
+
+
+ | PostgreSQL |
+ 12 |
+ 0 |
+ 100% |
+ ● 正常 |
+
+
+ | openresty 网关 |
+ 26 |
+ 0 |
+ 100% |
+ ● 正常 |
+
+
+ | 其他中间件 |
+ 46 |
+ 0 |
+ 100% |
+ ● 正常 |
+
+
+
+
+
@@ -74,5 +199,5 @@
diff --git a/frontend/src/views/service/Catalog.vue b/frontend/src/views/service/Catalog.vue
index 959574f..a69fc76 100644
--- a/frontend/src/views/service/Catalog.vue
+++ b/frontend/src/views/service/Catalog.vue
@@ -1,5 +1,6 @@
+
基础服务目录
@@ -9,7 +10,7 @@
-
-
-
-
-
-
发布服务 · 跳 Wayne
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
接入状态
-
- {{ system.status === 'integrated' ? '已接入' : '接入中' }}
+
+ {{ system.status === 'active' ? '在线' : '接入中' }}
{{ system.category }}
@@ -50,11 +50,17 @@
{{ detailDesc }}
-
- {{ system.status === 'integrated' ? 'LDAP 原生配置接入 · 已上线' : 'LDAP 接入改造中' }}
+
+ {{ system.status === 'active' ? 'LDAP 原生配置接入 · 在线' : 'LDAP 接入改造中' }}
-
@@ -86,6 +92,7 @@ const bgColor = computed(() => {
AP: 'var(--logo-ap-bg)',
QP: 'var(--logo-qp-bg)',
GF: 'var(--logo-gf-bg)',
+ SS: 'var(--logo-ss-bg)',
}
return colors[system.value.icon] || 'var(--bg-panel-2)'
})
@@ -99,6 +106,7 @@ const iconColor = computed(() => {
AP: 'var(--tag-blue-text)',
QP: 'var(--tag-amber-text)',
GF: 'var(--warn)',
+ SS: 'var(--tag-cyan-text)',
}
return colors[system.value.icon] || 'var(--text-mid)'
})
@@ -112,6 +120,7 @@ const detailDesc = computed(() => {
Apollo: '统一管理多机房 Config Service Cluster 的配置发布、灰度、回滚与变更审计,所有机房配置项均可在此单一入口检索与编辑。',
qpass: '七牛云内部系统。',
Grafana: '对接 VictoriaMetrics 数据源,K8s / 容器 / 业务指标统一仪表盘展示。预置核心看板,支持自定义。',
+ Superset: '日志数据探索与可视化分析平台,支持多数据源接入和丰富的图表展示。用于日志数据分析和可视化报表。',
}
return descs[system.value.name] || system.value.description
})
@@ -167,4 +176,14 @@ const openPortal = async () => {
.btn-primary:hover {
opacity: 0.85;
}
+
+.btn-disabled {
+ background: var(--text-dim);
+ cursor: not-allowed;
+ opacity: 0.6;
+}
+
+.btn-disabled:hover {
+ opacity: 0.6;
+}