{% extends "ewoooc_base.html" %} {% block title %}觀測台總覽{% endblock %} {% block ewooo_content %}

AI 觀測台總覽 {{ today }} · 全景一頁看(資料來源 8 表跨 JOIN)

{% if summary.hosts %} {% for h in summary.hosts %}
{{ h.label }}

{{ "%.1f"|format(h.uptime_pct) }}%

24h 在線率({{ h.up }}/{{ h.total }} probe)
{{ h.avg_ms }} ms
{% endfor %} {% else %}
host_health_probes 表無資料(migration 029 是否已跑?scheduler probe job 是否已啟動?)
{% endif %}
{% if summary.ai_calls %}
24h AI 呼叫

{{ "{:,}".format(summary.ai_calls.total) }}

Token:{{ "{:,}".format(summary.ai_calls.tokens) }}
成本

${{ "%.2f"|format(summary.ai_calls.cost_24h) }}/24h

當月累計 ${{ "%.2f"|format(summary.month_cost) }}
錯誤率

{{ "%.1f"|format(summary.ai_calls.error_rate) }}%

{{ summary.ai_calls.errors }} 次失敗
RAG 命中率

{{ "%.1f"|format(summary.ai_calls.rag_rate) }}%

{{ summary.ai_calls.rag_hits }} hits · cache {{ "%.0f"|format(summary.ai_calls.cache_rate) }}%
{% endif %}
{% if summary.budget_alerts %}
預算告警 — 共 {{ summary.budget_alerts|length }} 項超出閾值
{% for b in summary.budget_alerts %} {% endfor %}
週期供應商已花費預算使用率
{{ b.period }} {{ b.provider }} ${{ "%.2f"|format(b.spent) }} ${{ "%.2f"|format(b.budget) }} {{ "%.0f"|format(b.ratio * 100) }}%
{% endif %}
{% if summary.aiops %}
AIOps 自癒 7d
事件總數

{{ summary.aiops.incidents_total }}

未解決

{{ summary.aiops.incidents_open }}

P0/P1

{{ summary.aiops.incidents_p0_p1 }}

自癒成功率

{{ "%.0f"|format(summary.aiops.heal_rate) }}%

{% endif %} {% if summary.mcp %}
MCP 24h
tool 呼叫

{{ "{:,}".format(summary.mcp.total) }}

使用 server

{{ summary.mcp.servers }}

cache 命中

{{ summary.mcp.cache_hits }}

成本

${{ "%.4f"|format(summary.mcp.cost) }}

{% endif %} {% if summary.episodes %}
RAG 學習鏈路 30d
待審核

{{ summary.episodes.pending }}

總 episodes

{{ summary.episodes.total_30d }}

已晉升

{{ summary.episodes.approved_30d }}

晉升率

{{ "%.0f"|format(summary.episodes.approval_rate) }}%

{% endif %}
{% if summary.ppt and summary.ppt.total > 0 %}
PPT 視覺審核 7d
總筆數

{{ summary.ppt.total }}

通過

{{ summary.ppt.passed }}

失敗

{{ summary.ppt.failed }}

通過率

{{ "%.0f"|format(summary.ppt.pass_rate) }}%

{% endif %}
7 大子頁入口

Operation Ollama-First v5.0 / Phase 45 — AI 觀測台總覽 (資料來源:host_health_probes / ai_calls / ai_call_budgets / learning_episodes / ai_insights / rag_query_log / mcp_calls / incidents / heal_logs / ppt_audit_results)

{% endblock %}