diff options
| author | LeaveMyYard <zhukovpavel2001@gmail.com> | 2024-05-02 18:34:40 +0300 |
|---|---|---|
| committer | LeaveMyYard <zhukovpavel2001@gmail.com> | 2024-05-02 18:34:40 +0300 |
| commit | dce207f2e1a5aa6b2dad673192f3e59bf25e833b (patch) | |
| tree | d58ab557623d3c81bbad073ded190c1bcf8fdfe9 /robusta_krr | |
| parent | 7b6be353ff7108c5a23b61ea1b5bd238b51e9d0f (diff) | |
Remove test raise
Diffstat (limited to 'robusta_krr')
| -rw-r--r-- | robusta_krr/core/integrations/prometheus/metrics/cpu.py | 4 |
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)) |
