-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Windows statistics protobuf pacakge
Signed-off-by: James Sturtevant <[email protected]>
- Loading branch information
1 parent
0659a93
commit ec6dab9
Showing
6 changed files
with
259 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
Copyright The containerd Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
pub mod stats { | ||
include!(concat!(env!("OUT_DIR"), "/stats/stats.rs")); | ||
} | ||
|
||
pub mod metrics { | ||
pub use crate::cgroups::metrics::{file_descriptor, Metrics}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
158 changes: 158 additions & 0 deletions
158
crates/shim-protos/vendor/github.com/containerd/cgroups/v3/cgroup1/stats/metrics.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
69 changes: 69 additions & 0 deletions
69
crates/shim-protos/vendor/microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/stats/stats.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
syntax = "proto3"; | ||
|
||
package containerd.runhcs.stats.v1; | ||
|
||
import "google/protobuf/timestamp.proto"; | ||
import "github.com/containerd/cgroups/v3/cgroup1/stats/metrics.proto"; | ||
|
||
option go_package = "github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/stats;stats"; | ||
|
||
message Statistics { | ||
oneof container { | ||
WindowsContainerStatistics windows = 1; | ||
io.containerd.cgroups.v1.Metrics linux = 2; | ||
} | ||
VirtualMachineStatistics vm = 3; | ||
} | ||
|
||
message WindowsContainerStatistics { | ||
google.protobuf.Timestamp timestamp = 1; | ||
google.protobuf.Timestamp container_start_time = 2; | ||
uint64 uptime_ns = 3; | ||
WindowsContainerProcessorStatistics processor = 4; | ||
WindowsContainerMemoryStatistics memory = 5; | ||
WindowsContainerStorageStatistics storage = 6; | ||
} | ||
|
||
message WindowsContainerProcessorStatistics { | ||
uint64 total_runtime_ns = 1; | ||
uint64 runtime_user_ns = 2; | ||
uint64 runtime_kernel_ns = 3; | ||
} | ||
|
||
message WindowsContainerMemoryStatistics { | ||
uint64 memory_usage_commit_bytes = 1; | ||
uint64 memory_usage_commit_peak_bytes = 2; | ||
uint64 memory_usage_private_working_set_bytes = 3; | ||
} | ||
|
||
message WindowsContainerStorageStatistics { | ||
uint64 read_count_normalized = 1; | ||
uint64 read_size_bytes = 2; | ||
uint64 write_count_normalized = 3; | ||
uint64 write_size_bytes = 4; | ||
} | ||
|
||
message VirtualMachineStatistics { | ||
VirtualMachineProcessorStatistics processor = 1; | ||
VirtualMachineMemoryStatistics memory = 2; | ||
} | ||
|
||
message VirtualMachineProcessorStatistics { | ||
uint64 total_runtime_ns = 1; | ||
} | ||
|
||
message VirtualMachineMemoryStatistics { | ||
uint64 working_set_bytes = 1; | ||
uint32 virtual_node_count = 2; | ||
VirtualMachineMemory vm_memory = 3; | ||
} | ||
|
||
message VirtualMachineMemory { | ||
int32 available_memory = 1; | ||
int32 available_memory_buffer = 2; | ||
uint64 reserved_memory = 3; | ||
uint64 assigned_memory = 4; | ||
bool slp_active = 5; | ||
bool balancing_enabled = 6; | ||
bool dm_operation_in_progress = 7; | ||
} |