From dce207f2e1a5aa6b2dad673192f3e59bf25e833b Mon Sep 17 00:00:00 2001 From: LeaveMyYard Date: Thu, 2 May 2024 18:34:40 +0300 Subject: Remove test raise --- robusta_krr/core/integrations/prometheus/metrics/cpu.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'robusta_krr/core') 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)) -- cgit v1.2.3