from fastapi import APIRouter from fastapi.responses import HTMLResponse monitor_router = APIRouter(prefix="/monitor", tags=["监控"]) @monitor_router.get("/", response_class=HTMLResponse) async def monitor_dashboard(): """监控仪表板页面""" html_content = """