@@ -428,9 +428,9 @@ message LinuxPodSandboxStats {
428
428
// Memory usage gathered from the pod.
429
429
MemoryUsage memory = 2;
430
430
// 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;
432
432
// Stats pertaining to processes in the pod.
433
- ProcessStats process = 4;
433
+ ProcessUsage process = 4;
434
434
// Stats of containers in the measured pod.
435
435
repeated ContainerStats containers = 5;
436
436
}
@@ -440,17 +440,18 @@ message WindowsPodSandboxStats {
440
440
// TODO: Add stats relevant to windows
441
441
}
442
442
443
- // NetworkStats contains data about network resources.
444
- message NetworkStats {
443
+ // NetworkUsage contains data about network resources.
444
+ message NetworkUsage {
445
445
// The time at which these stats were updated.
446
446
int64 timestamp = 1;
447
447
// 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;
450
451
}
451
452
452
- // InterfaceStats contains resource value data about interface.
453
- type InterfaceStats struct {
453
+ // InterfaceUsage contains resource value data about interface.
454
+ type InterfaceUsage struct {
454
455
// The name of the interface
455
456
string name = 1;
456
457
// Cumulative count of bytes received.
@@ -463,8 +464,8 @@ type InterfaceStats struct {
463
464
Uint64Value tx_errors = 2;
464
465
}
465
466
466
- // ProcessStats are stats pertaining to processes.
467
- message ProcessStats {
467
+ // ProcessUsage are stats pertaining to processes.
468
+ message ProcessUsage {
468
469
// Number of processes in the pod.
469
470
Uint64Value process_count = 1;
470
471
}
0 commit comments