"""api.v1.metrics — Metrics endpoint for monitoring."""
from __future__ import annotations
from fastapi import APIRouter
from agentpaas.observability.metrics import metrics
from agentpaas.engine.cache import CompileCache

router = APIRouter(prefix="/metrics", tags=["observability"])

@router.get("/overview")
async def metrics_overview():
    return metrics.snapshot()
