fix(vector source): implement standard gRPC health checking protocol#24916
Merged
pront merged 5 commits intovectordotdev:masterfrom Mar 13, 2026
Merged
fix(vector source): implement standard gRPC health checking protocol#24916pront merged 5 commits intovectordotdev:masterfrom
pront merged 5 commits intovectordotdev:masterfrom
Conversation
Adds support for the standard gRPC health checking protocol (grpc.health.v1.Health) to the vector source alongside the existing custom health check endpoint. This enables compatibility with standard health checking tools like grpc-health-probe, which is commonly used in Kubernetes and other orchestration systems. Changes: - Added tonic-health dependency to support standard gRPC health protocol - Implemented grpc.health.v1.Health service in vector source - Maintained backward compatibility with existing custom health check - Added tests for both standard and custom health check endpoints - Both health services run on the same port using RoutesBuilder The custom vector.Vector/HealthCheck endpoint continues to work for existing Vector-to-Vector communication, while the new grpc.health.v1.Health/Check endpoint provides compatibility with standard tooling. Fixes: vectordotdev#23657 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
12eb373 to
6f1a402
Compare
Contributor
Author
|
@pront Yes, I readded what I was testing when I found this at: https://github.com/NixOS/nixpkgs/tree/master/nixos/tests/vector/ clickhouse: waiting for unit vector
clickhouse: (finished: waiting for unit vector, in 0.03 seconds)
clickhouse: must succeed: grpc-health-probe -addr localhost:6000
clickhouse # status: SERVING
clickhouse: (finished: must succeed: grpc-health-probe -addr localhost:6000, in 0.14 seconds)
clickhouse:
clickhouse: must succeed: grpc-health-probe -addr localhost:6000 vector/Vector
clickhouse # status: SERVING
clickhouse: (finished: must succeed: grpc-health-probe -addr localhost:6000 vector/Vector, in 0.02 seconds) |
Member
|
FYI I tested this locally and added my config and the test command to the PR summary. Please fill those fields for future PRs, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for the standard gRPC health checking protocol (grpc.health.v1.Health) to the vector source alongside the existing custom health check endpoint. This enables compatibility with standard health checking tools like grpc-health-probe, which is commonly used in Kubernetes and other orchestration systems.
Changes:
The custom vector.Vector/HealthCheck endpoint continues to work for existing Vector-to-Vector communication, while the new grpc.health.v1.Health/Check endpoint provides compatibility with standard tooling.
Vector configuration
How did you test this PR?
Change Type
Is this a breaking change?
Does this PR include user facing changes?
no-changeloglabel to this PR.References
Fixes: #23657
Notes
@vectordotdev/vectorto reach out to us regarding this PR.pre-pushhook, please see this template.make fmtmake check-clippy(if there are failures it's possible some of them can be fixed withmake clippy-fix)make testgit merge origin masterandgit push.Cargo.lock), pleaserun
make build-licensesto regenerate the license inventory and commit the changes (if any). More details here.