mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-27 13:15:36 +00:00
Fix cadvisor machine metrics
Signed-off-by: Ling Samuel <lingsamuelgrace@gmail.com>
This commit is contained in:
@@ -551,6 +551,9 @@ func NewMainKubelet(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// Avoid collector collects it as a timestamped metric
|
||||
// See PR #95210 and #97006 for more details.
|
||||
machineInfo.Timestamp = time.Time{}
|
||||
klet.setCachedMachineInfo(machineInfo)
|
||||
|
||||
imageBackOff := flowcontrol.NewBackOff(backOffPeriod, MaxContainerBackOff)
|
||||
|
Reference in New Issue
Block a user