summaryrefslogtreecommitdiff
path: root/robusta_krr/core
diff options
context:
space:
mode:
authorLeaveMyYard <zhukovpave2001@gmail.com>2024-03-04 17:54:41 +0200
committerLeaveMyYard <zhukovpave2001@gmail.com>2024-03-04 17:54:41 +0200
commit50147bd63ea57246d6b2653a849fb16da26f6339 (patch)
tree6cc5c2752ddef25a2dfb56be171942bb9f263623 /robusta_krr/core
parentf38e33c582cec37fa4eec457bcf431a266293aff (diff)
Fix ["result"] usage in metric_service
Diffstat (limited to 'robusta_krr/core')
-rw-r--r--robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py3
1 files changed, 0 insertions, 3 deletions
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 017c0b2..b428599 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
@@ -224,7 +224,6 @@ class PrometheusMetricsService(MetricsService):
}}[{period_literal}]
"""
)
- replicasets = replicasets["result"]
pod_owners = [replicaset["metric"]["replicaset"] for replicaset in replicasets]
pod_owner_kind = "ReplicaSet"
@@ -246,7 +245,6 @@ class PrometheusMetricsService(MetricsService):
)
"""
)
- related_pods_result = related_pods_result["result"]
if related_pods_result == []:
return []
@@ -267,7 +265,6 @@ class PrometheusMetricsService(MetricsService):
}} == 1
"""
)
- pods_status_result = pods_status_result["result"]
current_pods_set |= {pod["metric"]["pod"] for pod in pods_status_result}
del pods_status_result