Skip to content

feat: add /healtz and /readyz endpoints to standalone Gateway - #26988

Merged
pawbana merged 1 commit into
mainfrom
pawel/aigov-316-add-health-endpoints-to-standalone-ai-gateway
Jul 8, 2026
Merged

feat: add /healtz and /readyz endpoints to standalone Gateway#26988
pawbana merged 1 commit into
mainfrom
pawel/aigov-316-add-health-endpoints-to-standalone-ai-gateway

Conversation

@pawbana

@pawbana pawbana commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Adds /healthz and /readyz endpoints to standalone AI Gateway.

  • /healthz: returns 200 once the AI Gateways HTTP server is listening.
  • /readyz: returns 200 when the DRPC connection to coderd is established.

Cleanup:
Removed initConnection* fields from aibridged.Server as they where not used anywhere.

@linear-code

linear-code Bot commented Jul 6, 2026

Copy link
Copy Markdown

AIGOV-316

pawbana commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

@pawbana
pawbana requested review from dannykopping and ssncferreira and removed request for dannykopping July 6, 2026 09:25
@pawbana
pawbana marked this pull request as ready for review July 6, 2026 09:25
@pawbana
pawbana requested a review from dannykopping July 6, 2026 09:26
@pawbana
pawbana force-pushed the pawel/aigov-316-add-health-endpoints-to-standalone-ai-gateway branch 2 times, most recently from ec1e5b3 to f378478 Compare July 7, 2026 14:42
@pawbana
pawbana force-pushed the pawel/aigov-315-implement-basic-coder-aibridge-start-sub-command branch from a76de94 to 2d2bb0c Compare July 7, 2026 14:42
Base automatically changed from pawel/aigov-315-implement-basic-coder-aibridge-start-sub-command to main July 8, 2026 09:12
@pawbana
pawbana force-pushed the pawel/aigov-316-add-health-endpoints-to-standalone-ai-gateway branch from f378478 to 8d475a7 Compare July 8, 2026 09:13
@coderagents

coderagents Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Documentation Check

Updates Needed

  • docs/ai-coder/ai-gateway/setup.md - The setup page states that AI Gateway "runs inside the Coder control plane (coderd), requiring no separate compute." Now that coder ai-gateway start is merged (PR feat: add ai-gateway start command #26605), this is incomplete. The page should mention the standalone deployment mode and link to setup instructions (or a new dedicated page).

New Documentation Needed

  • Standalone AI Gateway operations documentation (e.g., in docs/ai-coder/ai-gateway/setup.md or a new page) - Document the /healthz and /readyz endpoints added by this PR: /healthz returns 200 once the HTTP server is listening; /readyz returns 200 when the DRPC connection to coderd is established. These are essential for Kubernetes liveness and readiness probes when deploying the standalone gateway.

Note

The broader standalone gateway setup documentation gap originates from PR #26605. This PR adds user-facing health endpoints that should be included when those docs are written.


Automated review via Coder Agents

@pawbana
pawbana enabled auto-merge (squash) July 8, 2026 09:25
@pawbana
pawbana merged commit 60d0859 into main Jul 8, 2026
29 of 30 checks passed
@pawbana
pawbana deleted the pawel/aigov-316-add-health-endpoints-to-standalone-ai-gateway branch July 8, 2026 09:28
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants