feat(xugu): add read-only server monitoring dashboard

This commit is contained in:
Elias authored and t8y2 committed 2026-09-06 10:57:08 +08:00
1 parent d6c4fa1aff
commit 3e82d6d650
9 files changed
+1153 -1

No files matched your search

+68
View File
@@ -3619,6 +3619,74 @@ export default {
tuplesOutChart: "Tuples out",
blockIoChart: "Block I/O",
},
xuguServerDashboard: {
title: "Xugu Server Dashboard",
off: "Off",
unsupported: "This page only supports XuguDB connections.",
loadFailed: "Unable to read Xugu runtime status.",
partialData: "Some monitoring views could not be read. The current account may lack system-view privileges; readable data is still shown.",
readOnlyHint: "Read-only monitoring; no database state is modified",
version: "Database version",
onlineNodes: "Online nodes",
sessions: "Sessions",
activeCount: "{count} active",
transactions: "Active transactions",
lockWaits: "Lock waits (table-level)",
lockOwners: "Held locks",
nodes: "Node status",
node: "Node",
type: "Type",
state: "State",
cpuLoad: "CPU load (reference)",
diskRead: "Disk read",
diskWrite: "Disk write",
memoryAndCache: "Cache & memory",
memoryHint: "From system memory views",
bufferPool: "Data buffer pool",
sga: "SGA",
swap: "Swap",
usedPercent: "{percent}% used",
dirtyPages: "Dirty {value}",
runtimeAndWrite: "Runtime & writes",
cumulativeHint: "Cumulative counters; they do not reset on refresh",
walPending: "WAL pending checkpoint",
transactionSpan: "Transaction ID span (risk signal)",
freeStores: "Free stores",
datafiles: "Data files",
sessionsAndTransactions: "Sessions & transactions",
activeSessionHint: "Active sessions include this monitor query",
idleSessions: "Idle sessions",
executingSessions: "Executing sessions",
otherSessions: "Other states",
oldestStatement: "Oldest active statement started",
oldestTransaction: "Oldest active transaction started",
locksAndCapacity: "Locks & capacity",
tablespaces: "Tablespaces",
mediaErrors: "Media errors",
lockModes: "Held lock modes",
dataTempFree: "DATA/TEMP free {value}",
rowLockLimit: "Lock waits cover table-level locks only; investigate row blocking through long transactions.",
bootTime: "Boot time",
rack: "Rack {rack}",
stores: "{count} stores",
emptyNodes: "No node data was returned, or the account cannot access SYS_CLUSTERS.",
nodeState: {
joining: "Joining",
running: "Running",
error: "Error",
offline: "Offline",
unknown: "Unknown",
},
nodeType: {
master: "Master",
standby: "Standby",
storage: "Storage",
query: "Query",
worker: "Worker",
change: "Change",
unknown: "Unknown",
},
},
userAdmin: {
title: "Users & Privileges",
unsupported: "MySQL-compatible and PostgreSQL-compatible connections are supported. SQL Server, Oracle, and other permission models can be added next.",
+68
View File
@@ -3606,6 +3606,74 @@ export default withEnglishFallback({
tuplesOutChart: "元组读取",
blockIoChart: "块 I/O",
},
xuguServerDashboard: {
title: "虚谷服务器仪表盘",
off: "关闭",
unsupported: "当前页面仅支持虚谷数据库连接。",
loadFailed: "无法读取虚谷运行状态。",
partialData: "部分监控视图不可读,当前账号可能缺少系统视图权限;已展示可读取的数据。",
readOnlyHint: "只读监控,不会修改数据库状态",
version: "数据库版本",
onlineNodes: "在线节点",
sessions: "会话",
activeCount: "活跃 {count}",
transactions: "活跃事务",
lockWaits: "锁等待(表级)",
lockOwners: "持有锁",
nodes: "节点运行状态",
node: "节点",
type: "类型",
state: "状态",
cpuLoad: "CPU 负载(参考)",
diskRead: "磁盘读取",
diskWrite: "磁盘写入",
memoryAndCache: "缓存与内存",
memoryHint: "基于系统内存视图",
bufferPool: "数据缓冲池",
sga: "SGA",
swap: "交换区",
usedPercent: "已使用 {percent}%",
dirtyPages: "脏页 {value}",
runtimeAndWrite: "运行与写入",
cumulativeHint: "累计计数,刷新不会重置",
walPending: "待检查点 WAL",
transactionSpan: "事务 ID 跨度(风险信号)",
freeStores: "空闲存储段数",
datafiles: "数据文件数",
sessionsAndTransactions: "会话与事务",
activeSessionHint: "活跃会话含本监控查询",
idleSessions: "空闲会话",
executingSessions: "执行中会话",
otherSessions: "其他状态",
oldestStatement: "最早执行语句开始时间",
oldestTransaction: "最早活跃事务开始时间",
locksAndCapacity: "锁与容量",
tablespaces: "表空间数",
mediaErrors: "介质错误数",
lockModes: "当前持有锁模式",
dataTempFree: "DATA/TEMP 空闲 {value}",
rowLockLimit: "锁等待仅覆盖表级锁;行级阻塞需结合长事务排查。",
bootTime: "启动时间",
rack: "机架 {rack}",
stores: "存储段 {count}",
emptyNodes: "未读取到节点信息,或当前账号无权访问 SYS_CLUSTERS。",
nodeState: {
joining: "加入中",
running: "运行中",
error: "错误",
offline: "离线",
unknown: "未知",
},
nodeType: {
master: "主节点",
standby: "备节点",
storage: "存储节点",
query: "查询节点",
worker: "工作节点",
change: "变更节点",
unknown: "未知",
},
},
userAdmin: {
title: "用户与权限",
unsupported: "当前支持 MySQL 兼容与 PostgreSQL 兼容连接。SQL Server、Oracle 等会按各自权限模型继续扩展。",