add health command (#2659)
Build / build-nix (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Has been cancelled
Check Generated Files / check-generated (push) Has been cancelled
Deploy docs / deploy (push) Has been cancelled
Tests / test (push) Has been cancelled

* add health command
* update health check implementation to allow for more checks to added over time
* add change changelog entry
This commit is contained in:
Stavros Kois authored and GitHub committed 2025-10-16 12:00:11 +00:00
1 parent c2a58a304d
commit c07cc491bf
9 files changed
+400 -105

No files matched your search

+14
View File
@@ -182,6 +182,14 @@ service HeadscaleService {
}
// --- Policy end ---
// --- Health start ---
rpc Health(HealthRequest) returns (HealthResponse) {
option (google.api.http) = {
get : "/api/v1/health"
};
}
// --- Health end ---
// Implement Tailscale API
// rpc GetDevice(GetDeviceRequest) returns(GetDeviceResponse) {
// option(google.api.http) = {
@@ -209,3 +217,9 @@ service HeadscaleService {
// };
// }
}
message HealthRequest {}
message HealthResponse {
bool database_connectivity = 1;
}