fix the metrics creation for lable and demo modes
@@ -92,9 +92,9 @@ class LabelRunner:
for value in self.executor.execute(cmd, nodes=[node]).values():
if value["ret_code"] > 0:
self.logger.info("Error return code: %s", value)
- self.metric_collector.add_pod_kill_failed_metric(item)
+ self.metric_collector.add_pod_kill_failed_metric(pod)
else:
- self.metric_collector.add_pod_killed_metric(item)
+ self.metric_collector.add_pod_killed_metric(pod)
def filter_pods(self, pods):
filters = [
