Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SandboxMetrics #8680

Merged
merged 2 commits into from
Jun 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 90 additions & 36 deletions api/next.pb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -884,13 +884,50 @@ file {
}
syntax: "proto3"
}
file {
name: "github.com/containerd/containerd/api/types/metrics.proto"
package: "containerd.types"
dependency: "google/protobuf/any.proto"
dependency: "google/protobuf/timestamp.proto"
message_type {
name: "Metric"
field {
name: "timestamp"
number: 1
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Timestamp"
json_name: "timestamp"
}
field {
name: "id"
number: 2
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "id"
}
field {
name: "data"
number: 3
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Any"
json_name: "data"
}
}
options {
go_package: "github.com/containerd/containerd/api/types;types"
}
syntax: "proto3"
}
file {
name: "github.com/containerd/containerd/api/runtime/sandbox/v1/sandbox.proto"
package: "containerd.runtime.sandbox.v1"
dependency: "google/protobuf/any.proto"
dependency: "google/protobuf/timestamp.proto"
dependency: "github.com/containerd/containerd/api/types/mount.proto"
dependency: "github.com/containerd/containerd/api/types/platform.proto"
dependency: "github.com/containerd/containerd/api/types/metrics.proto"
message_type {
name: "CreateSandboxRequest"
field {
Expand Down Expand Up @@ -1199,6 +1236,27 @@ file {
message_type {
name: "ShutdownSandboxResponse"
}
message_type {
name: "SandboxMetricsRequest"
field {
name: "sandbox_id"
number: 1
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "sandboxId"
}
}
message_type {
name: "SandboxMetricsResponse"
field {
name: "metrics"
number: 1
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".containerd.types.Metric"
json_name: "metrics"
}
}
service {
name: "Sandbox"
method {
Expand Down Expand Up @@ -1241,6 +1299,11 @@ file {
input_type: ".containerd.runtime.sandbox.v1.ShutdownSandboxRequest"
output_type: ".containerd.runtime.sandbox.v1.ShutdownSandboxResponse"
}
method {
name: "SandboxMetrics"
input_type: ".containerd.runtime.sandbox.v1.SandboxMetricsRequest"
output_type: ".containerd.runtime.sandbox.v1.SandboxMetricsResponse"
}
}
options {
go_package: "github.com/containerd/containerd/api/runtime/sandbox/v1;sandbox"
Expand Down Expand Up @@ -4943,6 +5006,7 @@ file {
dependency: "github.com/containerd/containerd/api/types/sandbox.proto"
dependency: "github.com/containerd/containerd/api/types/mount.proto"
dependency: "github.com/containerd/containerd/api/types/platform.proto"
dependency: "github.com/containerd/containerd/api/types/metrics.proto"
message_type {
name: "StoreCreateRequest"
field {
Expand Down Expand Up @@ -5330,6 +5394,27 @@ file {
message_type {
name: "ControllerShutdownResponse"
}
message_type {
name: "ControllerMetricsRequest"
field {
name: "sandbox_id"
number: 1
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "sandboxId"
}
}
message_type {
name: "ControllerMetricsResponse"
field {
name: "metrics"
number: 1
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".containerd.types.Metric"
json_name: "metrics"
}
}
service {
name: "Store"
method {
Expand Down Expand Up @@ -5395,6 +5480,11 @@ file {
input_type: ".containerd.services.sandbox.v1.ControllerShutdownRequest"
output_type: ".containerd.services.sandbox.v1.ControllerShutdownResponse"
}
method {
name: "Metrics"
input_type: ".containerd.services.sandbox.v1.ControllerMetricsRequest"
output_type: ".containerd.services.sandbox.v1.ControllerMetricsResponse"
}
}
options {
go_package: "github.com/containerd/containerd/api/services/sandbox/v1;sandbox"
Expand Down Expand Up @@ -5944,42 +6034,6 @@ file {
}
syntax: "proto3"
}
file {
name: "github.com/containerd/containerd/api/types/metrics.proto"
package: "containerd.types"
dependency: "google/protobuf/any.proto"
dependency: "google/protobuf/timestamp.proto"
message_type {
name: "Metric"
field {
name: "timestamp"
number: 1
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Timestamp"
json_name: "timestamp"
}
field {
name: "id"
number: 2
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "id"
}
field {
name: "data"
number: 3
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Any"
json_name: "data"
}
}
options {
go_package: "github.com/containerd/containerd/api/types;types"
}
syntax: "proto3"
}
file {
name: "github.com/containerd/containerd/api/services/tasks/v1/tasks.proto"
package: "containerd.services.tasks.v1"
Expand Down
Loading