@@ -304,6 +304,7 @@ These correspond to some fields of the [ContainerStats](#summary-container-stats
304
304
+ // Corresponds to Stats Summary API CPUStats UsageCoreNanoSeconds
305
305
= UInt64Value usage_core_nano_seconds = 2;
306
306
+ // Total CPU usage (sum of all cores) averaged over the sample window.
307
+ + // The "core" unit can be interpreted as CPU core-nanoseconds per second.
307
308
+ UInt64Value usage_nano_cores = 3;
308
309
=}
309
310
@@ -410,37 +411,41 @@ message PodSandboxAttributes {
410
411
}
411
412
412
413
// PodSandboxStats provides the resource usage statistics for a pod.
414
+ // The linux or windows field will be populated depending on the platform.
413
415
message PodSandboxStats {
414
416
// Information of the pod.
415
- // Corresponds to PodRef in SummaryAPI
416
417
PodSandboxAttributes attributes = 1;
418
+ // Stats from linux.
419
+ LinuxPodSandboxStats linux = 2;
420
+ // Stats from windows.
421
+ WindowsPodSandboxStats windows = 3;
422
+ }
423
+
424
+ // LinuxPodSandboxStats provides the resource usage statistics for a pod on linux
425
+ message LinuxPodSandboxStats {
417
426
// CPU usage gathered from the pod.
418
- // Corresponds to Stats SummaryAPI CPUStats field
419
- CpuUsage cpu = 2;
427
+ CpuUsage cpu = 1;
420
428
// Memory usage gathered from the pod.
421
- // Corresponds to Stats SummaryAPI MemoryStats field
422
- MemoryUsage memory = 3;
423
- // TODO: do we want a start time field?
424
- // The time at which data collection for the pod-scoped (e.g. network) stats was (re)started.
425
- // int64 timestamp = 1;
426
- // Stats of containers in the measured pod.
427
- repeated ContainerStats containers
429
+ MemoryUsage memory = 2;
428
430
// Stats pertaining to CPU resources consumed by pod cgroup (which includes all containers' resource usage and pod overhead).
429
- NetworkStats network = 4;
430
- // Note the specific omission of VolumeStats and EphemeralStorage
431
- // Each of these fields will be calculated Kubelet-level
432
- // ProcessStats pertaining to processes.
433
- ProcessStats process = 5;
431
+ NetworkStats network = 3;
432
+ // Stats pertaining to processes in the pod.
433
+ ProcessStats process = 4;
434
+ // Stats of containers in the measured pod.
435
+ repeated ContainerStats containers = 5;
436
+ }
437
+
438
+ // WindowsPodSandboxStats provides the resource usage statistics for a pod on windows
439
+ message WindowsPodSandboxStats {
440
+ // TODO: Add stats relevant to windows
434
441
}
435
442
436
443
// NetworkStats contains data about network resources.
437
444
message NetworkStats {
438
445
// The time at which these stats were updated.
439
446
int64 timestamp = 1;
440
-
441
447
// Stats for the default interface, if found
442
448
InterfaceStats default_interface = 2;
443
-
444
449
repeated InterfaceStats interfaces = 3;
445
450
}
446
451
0 commit comments