From 189f330b783fea076ad1e9dfc6f747ed07414d3e Mon Sep 17 00:00:00 2001 From: LeaveMyYard Date: Wed, 10 Jan 2024 13:58:58 +0200 Subject: [PATCH] Minor fix for set correct url for cluster version #176 --- .../prometheus/metrics_service/victoria_metrics_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/robusta_krr/core/integrations/prometheus/metrics_service/victoria_metrics_service.py b/robusta_krr/core/integrations/prometheus/metrics_service/victoria_metrics_service.py index 12aaace6..202055fe 100644 --- a/robusta_krr/core/integrations/prometheus/metrics_service/victoria_metrics_service.py +++ b/robusta_krr/core/integrations/prometheus/metrics_service/victoria_metrics_service.py @@ -30,7 +30,8 @@ def find_metrics_url(self, *, api_client: Optional[ApiClient] = None) -> Optiona "app=vmselect", ] ) - url = f"{url}/select/0/prometheus/" + if url is not None: + url = f"{url}/select/0/prometheus/" return url