mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Add Windows Podsandbox Stats
Signed-off-by: James Sturtevant <jstur@microsoft.com>
This commit is contained in:
parent
d802bd56ac
commit
295a9753a1
File diff suppressed because it is too large
Load Diff
@ -665,12 +665,21 @@ message LinuxPodSandboxStats {
|
|||||||
|
|
||||||
// WindowsPodSandboxStats provides the resource usage statistics for a pod sandbox on windows
|
// WindowsPodSandboxStats provides the resource usage statistics for a pod sandbox on windows
|
||||||
message WindowsPodSandboxStats {
|
message WindowsPodSandboxStats {
|
||||||
// TODO: Add stats relevant to windows.
|
// CPU usage gathered for the pod sandbox.
|
||||||
|
WindowsCpuUsage cpu = 1;
|
||||||
|
// Memory usage gathered for the pod sandbox.
|
||||||
|
WindowsMemoryUsage memory = 2;
|
||||||
|
// Network usage gathered for the pod sandbox
|
||||||
|
WindowsNetworkUsage network = 3;
|
||||||
|
// Stats pertaining to processes in the pod sandbox.
|
||||||
|
WindowsProcessUsage process = 4;
|
||||||
|
// Stats of containers in the measured pod sandbox.
|
||||||
|
repeated WindowsContainerStats containers = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
// NetworkUsage contains data about network resources.
|
// NetworkUsage contains data about network resources.
|
||||||
message NetworkUsage {
|
message NetworkUsage {
|
||||||
// The time at which these stats were updated.
|
// Timestamp in nanoseconds at which the information were collected. Must be > 0.
|
||||||
int64 timestamp = 1;
|
int64 timestamp = 1;
|
||||||
// Stats for the default network interface.
|
// Stats for the default network interface.
|
||||||
NetworkInterfaceUsage default_interface = 2;
|
NetworkInterfaceUsage default_interface = 2;
|
||||||
@ -678,6 +687,16 @@ message NetworkUsage {
|
|||||||
repeated NetworkInterfaceUsage interfaces = 3;
|
repeated NetworkInterfaceUsage interfaces = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WindowsNetworkUsage contains data about network resources specific to Windows.
|
||||||
|
message WindowsNetworkUsage {
|
||||||
|
// Timestamp in nanoseconds at which the information were collected. Must be > 0.
|
||||||
|
int64 timestamp = 1;
|
||||||
|
// Stats for the default network interface.
|
||||||
|
WindowsNetworkInterfaceUsage default_interface = 2;
|
||||||
|
// Stats for all found network interfaces, excluding the default.
|
||||||
|
repeated WindowsNetworkInterfaceUsage interfaces = 3;
|
||||||
|
}
|
||||||
|
|
||||||
// NetworkInterfaceUsage contains resource value data about a network interface.
|
// NetworkInterfaceUsage contains resource value data about a network interface.
|
||||||
message NetworkInterfaceUsage {
|
message NetworkInterfaceUsage {
|
||||||
// The name of the network interface.
|
// The name of the network interface.
|
||||||
@ -692,9 +711,31 @@ message NetworkInterfaceUsage {
|
|||||||
UInt64Value tx_errors = 5;
|
UInt64Value tx_errors = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WindowsNetworkInterfaceUsage contains resource value data about a network interface specific for Windows.
|
||||||
|
message WindowsNetworkInterfaceUsage {
|
||||||
|
// The name of the network interface.
|
||||||
|
string name = 1;
|
||||||
|
// Cumulative count of bytes received.
|
||||||
|
UInt64Value rx_bytes = 2;
|
||||||
|
// Cumulative count of receive errors encountered.
|
||||||
|
UInt64Value rx_packets_dropped = 3;
|
||||||
|
// Cumulative count of bytes transmitted.
|
||||||
|
UInt64Value tx_bytes = 4;
|
||||||
|
// Cumulative count of transmit errors encountered.
|
||||||
|
UInt64Value tx_packets_dropped = 5;
|
||||||
|
}
|
||||||
|
|
||||||
// ProcessUsage are stats pertaining to processes.
|
// ProcessUsage are stats pertaining to processes.
|
||||||
message ProcessUsage {
|
message ProcessUsage {
|
||||||
// The time at which these stats were updated.
|
// Timestamp in nanoseconds at which the information were collected. Must be > 0.
|
||||||
|
int64 timestamp = 1;
|
||||||
|
// Number of processes.
|
||||||
|
UInt64Value process_count = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// WindowsProcessUsage are stats pertaining to processes specific to Windows.
|
||||||
|
message WindowsProcessUsage {
|
||||||
|
// Timestamp in nanoseconds at which the information were collected. Must be > 0.
|
||||||
int64 timestamp = 1;
|
int64 timestamp = 1;
|
||||||
// Number of processes.
|
// Number of processes.
|
||||||
UInt64Value process_count = 2;
|
UInt64Value process_count = 2;
|
||||||
@ -1460,6 +1501,18 @@ message FilesystemUsage {
|
|||||||
UInt64Value inodes_used = 4;
|
UInt64Value inodes_used = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WindowsFilesystemUsage provides the filesystem usage information specific to Windows.
|
||||||
|
message WindowsFilesystemUsage {
|
||||||
|
// Timestamp in nanoseconds at which the information were collected. Must be > 0.
|
||||||
|
int64 timestamp = 1;
|
||||||
|
// The unique identifier of the filesystem.
|
||||||
|
FilesystemIdentifier fs_id = 2;
|
||||||
|
// UsedBytes represents the bytes used for images on the filesystem.
|
||||||
|
// This may differ from the total bytes used on the filesystem and may not
|
||||||
|
// equal CapacityBytes - AvailableBytes.
|
||||||
|
UInt64Value used_bytes = 3;
|
||||||
|
}
|
||||||
|
|
||||||
message ImageFsInfoResponse {
|
message ImageFsInfoResponse {
|
||||||
// Information of image filesystem(s).
|
// Information of image filesystem(s).
|
||||||
repeated FilesystemUsage image_filesystems = 1;
|
repeated FilesystemUsage image_filesystems = 1;
|
||||||
@ -1525,6 +1578,18 @@ message ContainerStats {
|
|||||||
FilesystemUsage writable_layer = 4;
|
FilesystemUsage writable_layer = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WindowsContainerStats provides the resource usage statistics for a container specific for Windows
|
||||||
|
message WindowsContainerStats {
|
||||||
|
// Information of the container.
|
||||||
|
ContainerAttributes attributes = 1;
|
||||||
|
// CPU usage gathered from the container.
|
||||||
|
WindowsCpuUsage cpu = 2;
|
||||||
|
// Memory usage gathered from the container.
|
||||||
|
WindowsMemoryUsage memory = 3;
|
||||||
|
// Usage of the writable layer.
|
||||||
|
WindowsFilesystemUsage writable_layer = 4;
|
||||||
|
}
|
||||||
|
|
||||||
// CpuUsage provides the CPU usage information.
|
// CpuUsage provides the CPU usage information.
|
||||||
message CpuUsage {
|
message CpuUsage {
|
||||||
// Timestamp in nanoseconds at which the information were collected. Must be > 0.
|
// Timestamp in nanoseconds at which the information were collected. Must be > 0.
|
||||||
@ -1536,6 +1601,17 @@ message CpuUsage {
|
|||||||
UInt64Value usage_nano_cores = 3;
|
UInt64Value usage_nano_cores = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WindowsCpuUsage provides the CPU usage information specific to Windows
|
||||||
|
message WindowsCpuUsage {
|
||||||
|
// Timestamp in nanoseconds at which the information were collected. Must be > 0.
|
||||||
|
int64 timestamp = 1;
|
||||||
|
// Cumulative CPU usage (sum across all cores) since object creation.
|
||||||
|
UInt64Value usage_core_nano_seconds = 2;
|
||||||
|
// Total CPU usage (sum of all cores) averaged over the sample window.
|
||||||
|
// The "core" unit can be interpreted as CPU core-nanoseconds per second.
|
||||||
|
UInt64Value usage_nano_cores = 3;
|
||||||
|
}
|
||||||
|
|
||||||
// MemoryUsage provides the memory usage information.
|
// MemoryUsage provides the memory usage information.
|
||||||
message MemoryUsage {
|
message MemoryUsage {
|
||||||
// Timestamp in nanoseconds at which the information were collected. Must be > 0.
|
// Timestamp in nanoseconds at which the information were collected. Must be > 0.
|
||||||
@ -1554,6 +1630,18 @@ message MemoryUsage {
|
|||||||
UInt64Value major_page_faults = 7;
|
UInt64Value major_page_faults = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WindowsMemoryUsage provides the memory usage information specific to Windows
|
||||||
|
message WindowsMemoryUsage {
|
||||||
|
// Timestamp in nanoseconds at which the information were collected. Must be > 0.
|
||||||
|
int64 timestamp = 1;
|
||||||
|
// The amount of working set memory in bytes.
|
||||||
|
UInt64Value working_set_bytes = 2;
|
||||||
|
// Available memory for use. This is defined as the memory limit - workingSetBytes.
|
||||||
|
UInt64Value available_bytes = 3;
|
||||||
|
// Cumulative number of page faults.
|
||||||
|
UInt64Value page_faults = 4;
|
||||||
|
}
|
||||||
|
|
||||||
message ReopenContainerLogRequest {
|
message ReopenContainerLogRequest {
|
||||||
// ID of the container for which to reopen the log.
|
// ID of the container for which to reopen the log.
|
||||||
string container_id = 1;
|
string container_id = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user