Expand description
Operational endpoints for the admin API: liveness/readiness probes, a status summary, Prometheus metrics, and manual config reload.
Functionsยง
- export_
config ๐ GET /api/config/exportโ renders the live in-memory gateway configuration (routes + policies, exactly what the data plane is running) as YAML, served astext/yaml; charset=utf-8. This is thegateway.yamlequivalent of whatever has been built through the UI / Admin API.- healthz ๐
GET /healthzโ liveness probe. Always200 OKwith{"status": "healthy"}while the process is running. Exempt from auth.- metrics ๐
GET /metricsโ renders the shared gateway registry (per-route and per-node counters/histograms recorded by the data plane) in Prometheus text exposition format, served astext/plain; charset=utf-8.- readyz ๐
GET /readyzโ readiness probe. Exempt from auth.- reload_
config ๐ POST /api/config/reloadโ re-readsgateway.yamlfrom disk (with env interpolation), recompiles all route graphs, and swaps them in. Returns{"status": "reloaded"}on success.- router
- Builds the router for
/healthz,/readyz,/api/status,/api/config/export,/api/config/reload, and/metrics. - status ๐
GET /api/statusโ gateway version plus route and policy counts.