Skip to content

Commit 1433725

Browse files
committed
cri stats: usage Usage instead of Stats for objects
as it's more consistent with how the other structs are setup Signed-off-by: Peter Hunt <[email protected]>
1 parent 9f29229 commit 1433725

File tree

1 file changed

+11
-10
lines changed
  • keps/sig-node/2371-cri-pod-container-stats

1 file changed

+11
-10
lines changed

keps/sig-node/2371-cri-pod-container-stats/README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,9 @@ message LinuxPodSandboxStats {
428428
// Memory usage gathered from the pod.
429429
MemoryUsage memory = 2;
430430
// Stats pertaining to CPU resources consumed by pod cgroup (which includes all containers' resource usage and pod overhead).
431-
NetworkStats network = 3;
431+
NetworkUsage network = 3;
432432
// Stats pertaining to processes in the pod.
433-
ProcessStats process = 4;
433+
ProcessUsage process = 4;
434434
// Stats of containers in the measured pod.
435435
repeated ContainerStats containers = 5;
436436
}
@@ -440,17 +440,18 @@ message WindowsPodSandboxStats {
440440
// TODO: Add stats relevant to windows
441441
}
442442
443-
// NetworkStats contains data about network resources.
444-
message NetworkStats {
443+
// NetworkUsage contains data about network resources.
444+
message NetworkUsage {
445445
// The time at which these stats were updated.
446446
int64 timestamp = 1;
447447
// Stats for the default interface, if found
448-
InterfaceStats default_interface = 2;
449-
repeated InterfaceStats interfaces = 3;
448+
InterfaceUsage default_interface = 2;
449+
// Stats for all found interfaces
450+
repeated InterfaceUsage interfaces = 3;
450451
}
451452
452-
// InterfaceStats contains resource value data about interface.
453-
type InterfaceStats struct {
453+
// InterfaceUsage contains resource value data about interface.
454+
type InterfaceUsage struct {
454455
// The name of the interface
455456
string name = 1;
456457
// Cumulative count of bytes received.
@@ -463,8 +464,8 @@ type InterfaceStats struct {
463464
Uint64Value tx_errors = 2;
464465
}
465466
466-
// ProcessStats are stats pertaining to processes.
467-
message ProcessStats {
467+
// ProcessUsage are stats pertaining to processes.
468+
message ProcessUsage {
468469
// Number of processes in the pod.
469470
Uint64Value process_count = 1;
470471
}

0 commit comments

Comments
 (0)