Skip to content

Commit fb6c6d7

Browse files
committed
[ws-mananger-api, -mk2] Emit new field .Status.InitializerMetrics
Tool: gitpod/catfood.gitpod.cloud
1 parent 00d3b82 commit fb6c6d7

File tree

9 files changed

+1546
-441
lines changed

9 files changed

+1546
-441
lines changed

components/ws-manager-api/core.proto

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ option go_package = "github.com/gitpod-io/gitpod/ws-manager/api";
66

77
import "content-service-api/initializer.proto";
88
import "google/protobuf/timestamp.proto";
9+
import "google/protobuf/duration.proto";
910

1011
service WorkspaceManager {
1112
// getWorkspaces produces a list of running workspaces and their status
@@ -321,6 +322,9 @@ message WorkspaceStatus {
321322

322323
// auth provides authentication information about the workspace. This info is primarily used by ws-proxy.
323324
WorkspaceAuthentication auth = 9;
325+
326+
// metrics contains metrics about the workspace
327+
InitializerMetrics initializer_metrics = 11;
324328
}
325329

326330
// IDEImage configures the IDE images a workspace will use
@@ -757,3 +761,33 @@ message WorkspaceClass {
757761
// The cost of running a workspace of this class per minute expressed in credits
758762
float credits_per_minute = 4;
759763
}
764+
765+
// Add these new message definitions
766+
message InitializerMetric {
767+
// Duration in nanoseconds (standard protobuf duration)
768+
google.protobuf.Duration duration = 1;
769+
770+
// Size in bytes
771+
uint64 size = 2;
772+
}
773+
774+
message InitializerMetrics {
775+
// Git contains metrics for the git initializer step
776+
InitializerMetric git = 1;
777+
778+
// FileDownload contains metrics for the file download initializer step
779+
InitializerMetric file_download = 2;
780+
781+
// Snapshot contains metrics for the snapshot initializer step
782+
// This used for workspaces started from snapshots.
783+
InitializerMetric snapshot = 3;
784+
785+
// Backup contains metrics for the backup initializer step
786+
InitializerMetric backup = 4;
787+
788+
// Prebuild contains metrics for the prebuild initializer step
789+
InitializerMetric prebuild = 5;
790+
791+
// Composite contains metrics for the composite initializer step
792+
InitializerMetric composite = 6;
793+
}

components/ws-manager-api/go/core.pb.go

Lines changed: 665 additions & 433 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/ws-manager-api/go/core_grpc.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/ws-manager-api/go/mock/mock.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/ws-manager-api/typescript/src/core_grpc_pb.d.ts

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/ws-manager-api/typescript/src/core_grpc_pb.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/ws-manager-api/typescript/src/core_pb.d.ts

Lines changed: 87 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)