You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(api): restore HTTP GET /health endpoint (#25234)
* refactor(api): serve gRPC via hyper + axum router
Convert tonic's Server to an axum Router via into_router(), then serve
over the same TcpListener via hyper::Server. Enables HTTP/1.1 acceptance
so additional HTTP routes can be added alongside gRPC on the same port.
Behavior-preserving.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(api): restore HTTP GET /health endpoint
Re-expose the HTTP health endpoint that was removed as part of the
GraphQL-to-gRPC migration (#24364). The endpoint matches the pre-0.55
response shape: 200 with body {"ok": true} while serving and 503 with
body {"ok": false} after set_not_serving() is called during drain.
HEAD is also handled.
gRPC clients continue to use grpc.health.v1.Health/Check; both probes
now share the same serving state so they agree during shutdown.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* test(api): cover HTTP GET/HEAD /health endpoint
Adds two integration tests hitting the restored HTTP health endpoint
via reqwest:
- GET returns 200 with body {"ok":true}
- HEAD returns 200
Exposes harness.api_port() so tests can reach the API port directly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs(api): document HTTP /health endpoint
Document the HTTP GET/HEAD /health endpoint served alongside the gRPC
API, framed as compatibility with Vector 0.54.0 and earlier. Updates
the reference endpoints schema to allow HEAD, adds HEAD/GET entries
for /health in api.cue with 200/503 responses, and adds a curl example
to the API reference page.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* style(api): apply cargo fmt
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: website/content/en/docs/reference/api.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,12 @@ instance. This page covers how to configure and enable Vector's API.
21
21
The API exposes a gRPC service defined in [`proto/vector/observability.proto`](https://github.com/vectordotdev/vector/blob/master/proto/vector/observability.proto).
22
22
You can interact with it using any standard gRPC tooling.
23
23
24
+
For compatibility with Vector 0.54.0 and earlier, the HTTP `GET /health`
25
+
endpoint continues to be served on the same port as the gRPC API, so
26
+
existing HTTP probes (for example AWS ALB health checks and Kubernetes
27
+
HTTP liveness/readiness probes) keep working without changes. See the
28
+
[Endpoints](#endpoints) section above for details.
0 commit comments