Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
"tiny fixes"
Browse files Browse the repository at this point in the history
  • Loading branch information
eminaktas committed Apr 2, 2021
1 parent 4039ef4 commit 9e7067b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k8s_workload_scaler/prometheus_metric_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ def control_and_trigger_scaling(self):
self.logger.info("The scaling out is triggered")
self.scale(f"scaling_out")
elif rate < self.scaling_in_threshold_value:
print(f"Violation detected ({rate} < {self.scaling_in_threshold_value})")
self.logger.info(f"Violation detected ({rate} < {self.scaling_in_threshold_value})")
self.logger.info("The scaling in is triggered")
self.scale(f"scaling_in")
else:
print("Violation not detected")
self.logger.info("Violation not detected")
else:
self.logger.error(f"Rate cannot be calculated: {self.metric_name}{self.label_list} not "
f"found in Prometheus")

0 comments on commit 9e7067b

Please sign in to comment.