agent: add new pb message GetMetrics

Add new message and generated codes for `GetMetrics` between runtime and agent.

Signed-off-by: bin liu <bin@hyper.sh>
This commit is contained in:
bin liu
2020-06-10 16:11:42 +08:00
parent 4b01ec1f3c
commit 9fd3e48c80
4 changed files with 1655 additions and 1088 deletions

View File

@@ -52,9 +52,10 @@ service AgentService {
rpc ListRoutes(ListRoutesRequest) returns (Routes);
rpc AddARPNeighbors(AddARPNeighborsRequest) returns (google.protobuf.Empty);
// tracing
// observability
rpc StartTracing(StartTracingRequest) returns (google.protobuf.Empty);
rpc StopTracing(StopTracingRequest) returns (google.protobuf.Empty);
rpc GetMetrics(GetMetricsRequest) returns (Metrics);
// misc (TODO: some rpcs can be replaced by hyperstart-exec)
rpc CreateSandbox(CreateSandboxRequest) returns (google.protobuf.Empty);
@@ -514,3 +515,9 @@ message GetOOMEventRequest {}
message OOMEvent {
string container_id = 1;
}
message GetMetricsRequest {}
message Metrics {
string metrics = 1;
}