Management API
Aidy 的 management 端口同时提供:
- 运维 HTTP 路由:
/health、/ready、/metrics、/debug/pprof/*、/dashboard/* - 基于 ConnectRPC 的管理面 API
默认监听 :12581。
HTTP 路由
GET /health
curl http://localhost:12581/health
成功响应:
{"status":"ok"}
GET /ready
检查 PG runtime store 是否可访问:
curl http://localhost:12581/ready
成功时:
{"status":"ready"}
GET /metrics
Prometheus 指标端点。
GET /debug/pprof/*
标准 Go pprof。
ALL /proxy?url=...
Dashboard Chat 使用这个路由把浏览器请求代理到目标上游,以规避 CORS。
ConnectRPC
对于各种资源的 CRUD 操作采用 Connect RPC 的形式暴露。定义可查看 management.v1。
这些 API 主要就是各种资源的 CRUD(对部分资源,可能不提供修改能力;对部分资源,可能提供更强的局部/原子更新能力)。
具体的资源可以直接参考 数据库 文档。