diff --git a/robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py b/robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py index 54805124..e97f7546 100644 --- a/robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py +++ b/robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py @@ -209,7 +209,7 @@ async def load_pods(self, object: K8sObjectData, period: datetime.timedelta) -> current_pods_set = {pod["metric"]["pod"] for pod in current_pods} del current_pods - object.pods += [ + object.pods += set([ PodData(name=pod["metric"]["pod"], deleted=pod["metric"]["pod"] not in current_pods_set) for pod in related_pods - ] + ])