diff --git a/frontend/src/api/admin/ops.ts b/frontend/src/api/admin/ops.ts index 3a5484df..ce0ab58d 100644 --- a/frontend/src/api/admin/ops.ts +++ b/frontend/src/api/admin/ops.ts @@ -734,6 +734,9 @@ export interface OpsAlertRuntimeSettings { export interface OpsAdvancedSettings { data_retention: OpsDataRetentionSettings aggregation: OpsAggregationSettings + ignore_count_tokens_errors: boolean + auto_refresh_enabled: boolean + auto_refresh_interval_seconds: number } export interface OpsDataRetentionSettings { diff --git a/frontend/src/views/admin/ops/OpsDashboard.vue b/frontend/src/views/admin/ops/OpsDashboard.vue index f6712352..b543c3fa 100644 --- a/frontend/src/views/admin/ops/OpsDashboard.vue +++ b/frontend/src/views/admin/ops/OpsDashboard.vue @@ -20,6 +20,8 @@ :loading="loading" :last-updated="lastUpdated" :thresholds="metricThresholds" + :auto-refresh-enabled="autoRefreshEnabled" + :auto-refresh-countdown="autoRefreshCountdown" @update:time-range="onTimeRangeChange" @update:platform="onPlatformChange" @update:group="onGroupChange" @@ -104,7 +106,7 @@ diff --git a/frontend/src/views/admin/ops/components/OpsDashboardHeader.vue b/frontend/src/views/admin/ops/components/OpsDashboardHeader.vue index e2002b34..1ac8627f 100644 --- a/frontend/src/views/admin/ops/components/OpsDashboardHeader.vue +++ b/frontend/src/views/admin/ops/components/OpsDashboardHeader.vue @@ -23,6 +23,8 @@ interface Props { loading: boolean lastUpdated: Date | null thresholds?: OpsMetricThresholds | null // 阈值配置 + autoRefreshEnabled?: boolean + autoRefreshCountdown?: number } interface Emits { @@ -839,6 +841,17 @@ function handleToolbarRefresh() { · {{ t('common.refresh') }}: {{ updatedAtLabel }} + + · + + + + + + 自动刷新: {{ props.autoRefreshCountdown }}s + + + · diff --git a/frontend/src/views/admin/ops/components/OpsSettingsDialog.vue b/frontend/src/views/admin/ops/components/OpsSettingsDialog.vue index 0c9c4f81..1f64f253 100644 --- a/frontend/src/views/admin/ops/components/OpsSettingsDialog.vue +++ b/frontend/src/views/admin/ops/components/OpsSettingsDialog.vue @@ -487,6 +487,48 @@ async function saveAllSettings() { + + + + 错误过滤 + + + + 忽略 count_tokens 错误 + + 启用后,count_tokens 请求的错误将不计入运维监控的统计和告警中(但仍会存储在数据库中) + + + + + + + + + 自动刷新 + + + + 启用自动刷新 + + 自动刷新仪表板数据,启用后会定期拉取最新数据 + + + + + + + 刷新间隔 + + +
+ 启用后,count_tokens 请求的错误将不计入运维监控的统计和告警中(但仍会存储在数据库中) +
+ 自动刷新仪表板数据,启用后会定期拉取最新数据 +