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
feat(disable-power-model): Clean unnecessary model disabling code
Metrics that have source "trained_power_model" can be disabled by
preventing them from being exported to prometheus. This PR removes
verbose code that disables models from being created when
DisablePowerModel is enabled as this is unnecessary.
Signed-off-by: Kaiyi <[email protected]>
klog.Infof("Failed to create %s Power Model to estimate Node Component Power: %v\n", modelConfig.ModelType.String()+"/"+modelConfig.ModelOutputType.String(), err)
60
60
}
61
61
} else {
62
-
klog.Infof("Skipping creation of Node Component Power Model since the system collection is supported or models are disabled")
62
+
klog.Infof("Skipping creation of Node Component Power Model since the system collection is supported")
klog.Infof("Failed to create %s Power Model to estimate Node Platform Power: %v\n", modelConfig.ModelType.String()+"/"+modelConfig.ModelOutputType.String(), err)
56
56
}
57
-
} else {
58
-
klog.Infof("Skipping creation of Node Platform Power Model since the system collection is supported or models are disabled")
klog.Infof("Failed to create %s Power Model to estimate %s Power: %v\n", modelConfig.ModelType.String()+"/"+modelConfig.ModelOutputType.String(), k, err)
0 commit comments