diff --git a/protos/orchestrator_service.proto b/protos/orchestrator_service.proto index f566163..c4939ad 100644 --- a/protos/orchestrator_service.proto +++ b/protos/orchestrator_service.proto @@ -664,6 +664,9 @@ service TaskHubSidecarService { // clean entity storage rpc CleanEntityStorage(CleanEntityStorageRequest) returns (CleanEntityStorageResponse); + + // send worker metrics to the backend, where they can be aggregated, and used for dynamic adaptations + rpc ReportWorkerMetrics(WorkerMetrics) returns (google.protobuf.Empty); } message GetWorkItemsRequest { @@ -713,4 +716,13 @@ message StreamInstanceHistoryRequest { message HistoryChunk { repeated HistoryEvent events = 1; -} \ No newline at end of file +} + +message WorkerMetrics +{ + google.protobuf.Timestamp timestamp = 1; + google.protobuf.Duration interval = 2; + double averageOrchestrationConcurrency = 3; + double averageActivityConcurrency = 4; + double averageEntityConcurrency = 5; +}