{{ t('system.globalSettings.operations.processing') }} · {{ t('system.globalSettings.operations.waiting') }} {{ im?.available ? `${im.pending} / ${im.queue_limit}` : '—' }}
+{{ t('system.globalSettings.operations.instanceScope') }}
+diff --git a/docs/swagger.json b/docs/swagger.json
index 755cac111f7..32693788d3e 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -27011,6 +27011,32 @@
}
}
},
+ "github_com_Tencent_WeKnora_internal_im.RuntimeStatus": {
+ "type": "object",
+ "properties": {
+ "active": {
+ "type": "integer"
+ },
+ "available": {
+ "type": "boolean"
+ },
+ "pending": {
+ "type": "integer"
+ },
+ "queue_limit": {
+ "type": "integer"
+ },
+ "rejected": {
+ "type": "integer"
+ },
+ "timed_out": {
+ "type": "integer"
+ },
+ "workers": {
+ "type": "integer"
+ }
+ }
+ },
"github_com_Tencent_WeKnora_internal_infrastructure_chunker.DocProfile": {
"type": "object",
"properties": {
@@ -41832,6 +41858,150 @@
}
}
},
+ "internal_handler.OperationsBackup": {
+ "type": "object",
+ "properties": {
+ "available": {
+ "type": "boolean"
+ },
+ "completed_at": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "snapshot_count": {
+ "type": "integer"
+ },
+ "stale": {
+ "type": "boolean"
+ }
+ }
+ },
+ "internal_handler.OperationsDisk": {
+ "type": "object",
+ "properties": {
+ "available": {
+ "type": "boolean"
+ },
+ "available_bytes": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "total_bytes": {
+ "type": "integer"
+ },
+ "used_percent": {
+ "type": "number"
+ }
+ }
+ },
+ "internal_handler.OperationsHost": {
+ "type": "object",
+ "properties": {
+ "cpu_count": {
+ "type": "integer"
+ },
+ "load_1m": {
+ "type": "number"
+ },
+ "memory_available_bytes": {
+ "type": "integer"
+ },
+ "memory_total_bytes": {
+ "type": "integer"
+ }
+ }
+ },
+ "internal_handler.OperationsLog": {
+ "type": "object",
+ "properties": {
+ "bytes": {
+ "type": "integer"
+ },
+ "health": {
+ "type": "string"
+ },
+ "max_files": {
+ "type": "string"
+ },
+ "max_size": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ }
+ },
+ "internal_handler.OperationsService": {
+ "type": "object",
+ "properties": {
+ "active": {
+ "type": "string"
+ },
+ "available": {
+ "type": "boolean"
+ },
+ "exit_status": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "result": {
+ "type": "string"
+ },
+ "running_required": {
+ "type": "boolean"
+ }
+ }
+ },
+ "internal_handler.OperationsStatus": {
+ "type": "object",
+ "properties": {
+ "available": {
+ "type": "boolean"
+ },
+ "backups": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/internal_handler.OperationsBackup"
+ }
+ },
+ "collected_at": {
+ "type": "integer"
+ },
+ "disks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/internal_handler.OperationsDisk"
+ }
+ },
+ "host": {
+ "$ref": "#/definitions/internal_handler.OperationsHost"
+ },
+ "logs": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/internal_handler.OperationsLog"
+ }
+ },
+ "services": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/internal_handler.OperationsService"
+ }
+ },
+ "stale": {
+ "type": "boolean"
+ }
+ }
+ },
"internal_handler.PageResponse": {
"type": "object",
"properties": {
@@ -42581,6 +42751,9 @@
"type": "boolean",
"x-agent": true
},
+ "im": {
+ "$ref": "#/definitions/github_com_Tencent_WeKnora_internal_im.RuntimeStatus"
+ },
"model_limiter_available": {
"type": "boolean",
"x-agent": true
@@ -42596,6 +42769,9 @@
"type": "boolean",
"x-agent": true
},
+ "operations": {
+ "$ref": "#/definitions/internal_handler.OperationsStatus"
+ },
"parse_concurrency": {
"description": "compatibility alias for upstream_concurrency",
"type": "integer"
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index fd2023114ac..4cd3dbd451e 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -1059,6 +1059,23 @@ definitions:
updated_at:
type: string
type: object
+ github_com_Tencent_WeKnora_internal_im.RuntimeStatus:
+ properties:
+ active:
+ type: integer
+ available:
+ type: boolean
+ pending:
+ type: integer
+ queue_limit:
+ type: integer
+ rejected:
+ type: integer
+ timed_out:
+ type: integer
+ workers:
+ type: integer
+ type: object
github_com_Tencent_WeKnora_internal_infrastructure_chunker.DocProfile:
properties:
all_caps_short_line_count:
@@ -12753,6 +12770,100 @@ definitions:
- kb_id
- knowledge_ids
type: object
+ internal_handler.OperationsBackup:
+ properties:
+ available:
+ type: boolean
+ completed_at:
+ type: integer
+ name:
+ type: string
+ snapshot_count:
+ type: integer
+ stale:
+ type: boolean
+ type: object
+ internal_handler.OperationsDisk:
+ properties:
+ available:
+ type: boolean
+ available_bytes:
+ type: integer
+ name:
+ type: string
+ total_bytes:
+ type: integer
+ used_percent:
+ type: number
+ type: object
+ internal_handler.OperationsHost:
+ properties:
+ cpu_count:
+ type: integer
+ load_1m:
+ type: number
+ memory_available_bytes:
+ type: integer
+ memory_total_bytes:
+ type: integer
+ type: object
+ internal_handler.OperationsLog:
+ properties:
+ bytes:
+ type: integer
+ health:
+ type: string
+ max_files:
+ type: string
+ max_size:
+ type: string
+ name:
+ type: string
+ status:
+ type: string
+ type: object
+ internal_handler.OperationsService:
+ properties:
+ active:
+ type: string
+ available:
+ type: boolean
+ exit_status:
+ type: integer
+ name:
+ type: string
+ result:
+ type: string
+ running_required:
+ type: boolean
+ type: object
+ internal_handler.OperationsStatus:
+ properties:
+ available:
+ type: boolean
+ backups:
+ items:
+ $ref: '#/definitions/internal_handler.OperationsBackup'
+ type: array
+ collected_at:
+ type: integer
+ disks:
+ items:
+ $ref: '#/definitions/internal_handler.OperationsDisk'
+ type: array
+ host:
+ $ref: '#/definitions/internal_handler.OperationsHost'
+ logs:
+ items:
+ $ref: '#/definitions/internal_handler.OperationsLog'
+ type: array
+ services:
+ items:
+ $ref: '#/definitions/internal_handler.OperationsService'
+ type: array
+ stale:
+ type: boolean
+ type: object
internal_handler.PageResponse:
properties:
data: {}
@@ -13294,6 +13405,8 @@ definitions:
available:
type: boolean
x-agent: true
+ im:
+ $ref: '#/definitions/github_com_Tencent_WeKnora_internal_im.RuntimeStatus'
model_limiter_available:
type: boolean
x-agent: true
@@ -13305,6 +13418,8 @@ definitions:
models_error:
type: boolean
x-agent: true
+ operations:
+ $ref: '#/definitions/internal_handler.OperationsStatus'
parse_concurrency:
description: compatibility alias for upstream_concurrency
type: integer
diff --git a/frontend/src/api/system/index.ts b/frontend/src/api/system/index.ts
index c3a16d2a190..07aa1d5246c 100644
--- a/frontend/src/api/system/index.ts
+++ b/frontend/src/api/system/index.ts
@@ -636,6 +636,26 @@ export interface ModelRuntimeStat {
limit: number
}
+export interface IMRuntimeStatus {
+ available: boolean
+ workers: number
+ queue_limit: number
+ pending: number
+ active: number
+ rejected: number
+ timed_out: number
+}
+export interface OperationsStatus {
+ available: boolean
+ stale: boolean
+ collected_at?: number
+ host?: { cpu_count?: number; load_1m?: number; memory_total_bytes?: number; memory_available_bytes?: number }
+ disks?: { name: string; available: boolean; used_percent?: number; available_bytes?: number; total_bytes?: number }[]
+ backups?: { name: string; available: boolean; snapshot_count: number; completed_at?: number; stale: boolean }[]
+ logs?: { name: string; bytes?: number; max_size?: string; max_files?: string; status?: string; health?: string }[]
+ services?: { name: string; available: boolean; result?: string; active?: string; exit_status?: number; running_required: boolean }[]
+}
+
/**
* Runtime queue dashboard payload. `available` is false in Lite mode
* (no Redis/asynq) — render an "unavailable in this deployment" state
@@ -644,6 +664,8 @@ export interface ModelRuntimeStat {
* server heartbeats.
*/
export interface RuntimeQueuesResponse {
+ operations?: OperationsStatus
+ im?: IMRuntimeStatus
available: boolean
upstream_concurrency: number
parse_concurrency: number
diff --git a/frontend/src/i18n/locales/en-US/system.ts b/frontend/src/i18n/locales/en-US/system.ts
index 3917f80577f..3a497206746 100644
--- a/frontend/src/i18n/locales/en-US/system.ts
+++ b/frontend/src/i18n/locales/en-US/system.ts
@@ -108,6 +108,33 @@ export default {
networkError: 'Network error, please try again later'
},
globalSettings: {
+ operations: {
+ title: "Operations",
+ eyebrow: "PLATFORM OPERATIONS",
+ im: "Messaging requests",
+ processing: "Processing",
+ waiting: "Queued",
+ instanceScope: "Current instance only",
+ memory: "Available memory",
+ total: "Total memory",
+ cpu: "CPU",
+ load: "1-minute load",
+ available: "Available",
+ notConnected: "Configure the optional host collector to view host status.",
+ stale: "Host data is over 10 minutes old. Check the collector.",
+ backups: "Local backups",
+ snapshots: "Snapshots",
+ unknown: "Unknown",
+ overdue: "Over 26 hours old",
+ recent: "Recently completed",
+ logs: "Container log size",
+ retentionUnknown: "Retention limit not reported",
+ services: "Services and scheduled jobs",
+ normal: "Normal",
+ failed: "Check required",
+ running: "Running",
+ notUpdated: "Not collected",
+ },
title: 'System Settings',
description: 'Platform-wide runtime configuration. Saves take effect immediately for every workspace. Visible and editable by system administrators only.',
loading: 'Loading...',
diff --git a/frontend/src/i18n/locales/ja-JP/system.ts b/frontend/src/i18n/locales/ja-JP/system.ts
index 8cb488afa3f..89dd41be4fd 100644
--- a/frontend/src/i18n/locales/ja-JP/system.ts
+++ b/frontend/src/i18n/locales/ja-JP/system.ts
@@ -108,6 +108,33 @@ export default {
networkError: 'ネットワークエラーです。しばらくしてから再試行してください'
},
globalSettings: {
+ operations: {
+ title: "運用状況",
+ eyebrow: "PLATFORM OPERATIONS",
+ im: "メッセージ処理",
+ processing: "処理中",
+ waiting: "待機中",
+ instanceScope: "現在のインスタンスのみ",
+ memory: "利用可能メモリ",
+ total: "合計メモリ",
+ cpu: "CPU",
+ load: "1分間の負荷",
+ available: "利用可能",
+ notConnected: "ホストの状態を表示するには収集サービスを設定してください。",
+ stale: "ホストデータは10分以上更新されていません。収集サービスを確認してください。",
+ backups: "ローカルバックアップ",
+ snapshots: "スナップショット",
+ unknown: "不明",
+ overdue: "26時間以上経過",
+ recent: "最近完了",
+ logs: "コンテナログ容量",
+ retentionUnknown: "保持上限が未報告",
+ services: "サービスと定期実行",
+ normal: "正常",
+ failed: "確認が必要",
+ running: "実行中",
+ notUpdated: "未収集",
+ },
title: 'システム設定',
description: 'プラットフォーム全体のランタイム設定です。保存するとすべてのワークスペースに即座に反映されます。システム管理者のみが表示・編集できます。',
loading: '読み込み中...',
diff --git a/frontend/src/i18n/locales/ko-KR/system.ts b/frontend/src/i18n/locales/ko-KR/system.ts
index e2ff40490e1..914c5c6cd36 100644
--- a/frontend/src/i18n/locales/ko-KR/system.ts
+++ b/frontend/src/i18n/locales/ko-KR/system.ts
@@ -104,6 +104,33 @@ export default {
graphDatabaseEngineDescription: '현재 사용 중인 그래프 데이터베이스 엔진',
unknown: '알 수 없음',
globalSettings: {
+ operations: {
+ title: "운영 상태",
+ eyebrow: "PLATFORM OPERATIONS",
+ im: "메시지 요청",
+ processing: "처리 중",
+ waiting: "대기 중",
+ instanceScope: "현재 인스턴스만 집계",
+ memory: "사용 가능한 메모리",
+ total: "전체 메모리",
+ cpu: "CPU",
+ load: "1분 부하",
+ available: "사용 가능",
+ notConnected: "호스트 상태를 보려면 선택적 수집기를 설정하세요.",
+ stale: "호스트 데이터가 10분 이상 갱신되지 않았습니다. 수집기를 확인하세요.",
+ backups: "로컬 백업",
+ snapshots: "스냅샷",
+ unknown: "알 수 없음",
+ overdue: "26시간 초과",
+ recent: "최근 완료",
+ logs: "컨테이너 로그 크기",
+ retentionUnknown: "보관 한도 미보고",
+ services: "서비스 및 예약 작업",
+ normal: "정상",
+ failed: "확인 필요",
+ running: "실행 중",
+ notUpdated: "수집되지 않음",
+ },
title: '시스템 설정',
description: '플랫폼 전역 런타임 설정입니다. 저장하면 모든 워크스페이스에 즉시 적용됩니다. 시스템 관리자만 보고 수정할 수 있습니다.',
loading: '로딩 중...',
diff --git a/frontend/src/i18n/locales/ru-RU/system.ts b/frontend/src/i18n/locales/ru-RU/system.ts
index 65a1f877c7c..fdb328d17f3 100644
--- a/frontend/src/i18n/locales/ru-RU/system.ts
+++ b/frontend/src/i18n/locales/ru-RU/system.ts
@@ -104,6 +104,33 @@ export default {
graphDatabaseEngineDescription: 'Используемый в настоящее время движок графовой базы данных',
unknown: 'Неизвестно',
globalSettings: {
+ operations: {
+ title: "Состояние системы",
+ eyebrow: "PLATFORM OPERATIONS",
+ im: "Запросы сообщений",
+ processing: "Обработка",
+ waiting: "В очереди",
+ instanceScope: "Только текущий экземпляр",
+ memory: "Доступная память",
+ total: "Всего памяти",
+ cpu: "CPU",
+ load: "Нагрузка за минуту",
+ available: "Доступно",
+ notConnected: "Настройте сборщик для просмотра состояния хоста.",
+ stale: "Данные хоста не обновлялись более 10 минут. Проверьте сборщик.",
+ backups: "Локальные резервные копии",
+ snapshots: "Снимки",
+ unknown: "Неизвестно",
+ overdue: "Более 26 часов",
+ recent: "Недавно завершено",
+ logs: "Размер логов контейнеров",
+ retentionUnknown: "Лимит хранения не указан",
+ services: "Службы и задания",
+ normal: "Норма",
+ failed: "Требуется проверка",
+ running: "Работает",
+ notUpdated: "Нет данных",
+ },
title: 'Системные настройки',
description: 'Настройки платформы, применяемые в режиме реального времени. Изменения сразу действуют для всех пространств. Доступны только системным администраторам.',
loading: 'Загрузка...',
diff --git a/frontend/src/i18n/locales/zh-CN/system.ts b/frontend/src/i18n/locales/zh-CN/system.ts
index a6ec20be5b3..992a0935508 100644
--- a/frontend/src/i18n/locales/zh-CN/system.ts
+++ b/frontend/src/i18n/locales/zh-CN/system.ts
@@ -104,6 +104,33 @@ export default {
graphDatabaseEngineDescription: '当前使用的图数据库引擎',
unknown: '未知',
globalSettings: {
+ operations: {
+ title: "运行保障",
+ eyebrow: "PLATFORM OPERATIONS",
+ im: "即时问答",
+ processing: "正在处理",
+ waiting: "排队",
+ instanceScope: "仅统计当前实例",
+ memory: "可用内存",
+ total: "总内存",
+ cpu: "处理器",
+ load: "1分钟负载",
+ available: "可用空间",
+ notConnected: "尚未接入可选主机采集器,请配置采集服务。",
+ stale: "主机数据已超过10分钟未更新,请检查采集服务。",
+ backups: "本机备份",
+ snapshots: "快照数",
+ unknown: "未知",
+ overdue: "超过26小时",
+ recent: "近期完成",
+ logs: "容器日志容量",
+ retentionUnknown: "未报告保留上限",
+ services: "服务与定时任务",
+ normal: "正常",
+ failed: "需检查",
+ running: "运行中",
+ notUpdated: "尚未采集",
+ },
title: '系统设置',
description: '平台级运行时配置,保存后立即对所有空间生效。仅系统管理员可见可改。',
loading: '加载中...',
diff --git a/frontend/src/i18n/locales/zh-TW/system.ts b/frontend/src/i18n/locales/zh-TW/system.ts
index 044e366f2ef..0f65c4082df 100644
--- a/frontend/src/i18n/locales/zh-TW/system.ts
+++ b/frontend/src/i18n/locales/zh-TW/system.ts
@@ -104,6 +104,33 @@ export default {
graphDatabaseEngineDescription: '當前使用的圖資料庫引擎',
unknown: '未知',
globalSettings: {
+ operations: {
+ title: "執行保障",
+ eyebrow: "PLATFORM OPERATIONS",
+ im: "即時問答",
+ processing: "處理中",
+ waiting: "排隊",
+ instanceScope: "僅統計目前執行個體",
+ memory: "可用記憶體",
+ total: "總記憶體",
+ cpu: "處理器",
+ load: "1分鐘負載",
+ available: "可用空間",
+ notConnected: "尚未連接選用主機收集器,請設定收集服務。",
+ stale: "主機資料超過10分鐘未更新,請檢查收集服務。",
+ backups: "本機備份",
+ snapshots: "快照數",
+ unknown: "未知",
+ overdue: "超過26小時",
+ recent: "近期完成",
+ logs: "容器日誌容量",
+ retentionUnknown: "未回報保留上限",
+ services: "服務與排程工作",
+ normal: "正常",
+ failed: "需檢查",
+ running: "執行中",
+ notUpdated: "尚未收集",
+ },
title: '系統設定',
description: '平台級運行時設定,儲存後立即對所有空間生效。僅系統管理員可見可改。',
loading: '載入中...',
diff --git a/frontend/src/views/system/OperationsOverview.vue b/frontend/src/views/system/OperationsOverview.vue
new file mode 100644
index 00000000000..44900d33d2b
--- /dev/null
+++ b/frontend/src/views/system/OperationsOverview.vue
@@ -0,0 +1,148 @@
+
+ {{ t('system.globalSettings.operations.processing') }} · {{ t('system.globalSettings.operations.waiting') }} {{ im?.available ? `${im.pending} / ${im.queue_limit}` : '—' }} {{ t('system.globalSettings.operations.instanceScope') }} {{ t('system.globalSettings.operations.total') }} {{ bytes(status?.host?.memory_total_bytes) }} {{ t('system.globalSettings.operations.cpu') }} {{ status?.host?.cpu_count ?? '—' }} · {{ t('system.globalSettings.operations.load') }} {{ status?.host?.load_1m?.toFixed(2) ?? '—' }} {{ t('system.globalSettings.operations.available') }} {{ bytes(disk.available_bytes) }} {{ t('system.globalSettings.operations.notConnected') }} {{ t('system.globalSettings.operations.stale') }}{{ t('system.globalSettings.operations.title') }}
+ {{ t('system.globalSettings.operations.backups') }}
+ {{ t('system.globalSettings.operations.logs') }}
+ {{ t('system.globalSettings.operations.services') }}
+