You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, fmt.Errorf("UsageCoreNanoSeconds missing from CPUStats %v", cpu)
437
437
}
438
+
// Only send cpu usage metric if start time is before current time. Right after container is started, kubelet can return start time == end time.
439
+
if!cpu.Time.Time.After(startTime) {
440
+
returnnil, nil
441
+
}
438
442
439
443
// Total CPU utilization for all time. Convert from nanosec to sec.
440
444
cpuTotalPoint:=tsFactory.newPoint(&v3.TypedValue{
@@ -519,7 +523,7 @@ func translateMemory(memory *stats.MemoryStats, tsFactory *timeSeriesFactory, st
519
523
returnnil, fmt.Errorf("Memory information missing.")
520
524
}
521
525
522
-
// Only send page fault metric if start time is before current time. Right after container is started, kubelet can return start time == end time. This doesn't seem to happen with other metrics.
526
+
// Only send page fault metric if start time is before current time. Right after container is started, kubelet can return start time == end time.
0 commit comments