summaryrefslogtreecommitdiff
path: root/robusta_krr
diff options
context:
space:
mode:
Diffstat (limited to 'robusta_krr')
-rw-r--r--robusta_krr/core/integrations/prometheus/metrics/cpu.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/robusta_krr/core/integrations/prometheus/metrics/cpu.py b/robusta_krr/core/integrations/prometheus/metrics/cpu.py
index b30a4d9..14318ca 100644
--- a/robusta_krr/core/integrations/prometheus/metrics/cpu.py
+++ b/robusta_krr/core/integrations/prometheus/metrics/cpu.py
@@ -64,7 +64,7 @@ class CPUAmountLoader(PrometheusMetric):
def get_query(self, object: K8sWorkload, duration: str, step: str) -> str:
pods_selector = "|".join(pod.name for pod in object.pods)
- res = f"""
+ return f"""
count_over_time(
max(
container_cpu_usage_seconds_total{{
@@ -77,5 +77,3 @@ class CPUAmountLoader(PrometheusMetric):
[{duration}:{step}]
)
"""
-
- raise(Exception(res))