Add health endpoint for worker (#2442)
* Return worker process information in the health endpoint. Experimental: The worker_info and returned worker_process_info fields are experimental and can change or be removed without notice. When a user passes in "worker_info=1" or "worker_info=true" and a worker is running the returned json will be returned with a key named "worker_process_info" which value is a json object with information about the worker process.
This commit is contained in:
19 files changed
+848
-401
No files matched your search
@@ -1,9 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.ops.resources.health.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/ops/resources/health;health";
|
||||
|
||||
// Health is the underlying resource used by the Health Service.
|
||||
// Empty for now as we don't want to commit to an API yet.
|
||||
message Health {}
|
||||
@@ -1,19 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.ops.services.v1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
option go_package = "github.com/hashicorp/boundary/internal/gen/controller/ops/services;services";
|
||||
|
||||
service HealthService {
|
||||
rpc GetHealth(GetHealthRequest) returns (GetHealthResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/health"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
message GetHealthRequest {}
|
||||
|
||||
message GetHealthResponse {}
|
||||
Reference in new issue
Block a user