From 274d8a1e554b1fc4cbc519d5afa16d00fcc02998 Mon Sep 17 00:00:00 2001 From: andersonid Date: Fri, 26 Sep 2025 08:58:57 -0300 Subject: [PATCH] Fix: disable SSL verification for Prometheus HTTPS connections --- app/core/prometheus_client.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/core/prometheus_client.py b/app/core/prometheus_client.py index d26ae1a..5a07e99 100644 --- a/app/core/prometheus_client.py +++ b/app/core/prometheus_client.py @@ -40,8 +40,8 @@ class PrometheusClient: self.session = aiohttp.ClientSession(connector=connector, headers=headers) - # Test connection - async with self.session.get(f"{self.base_url}/api/v1/query?query=up") as response: + # Test connection with SSL verification disabled + async with self.session.get(f"{self.base_url}/api/v1/query?query=up", ssl=False) as response: if response.status == 200: self.initialized = True logger.info("Prometheus client initialized successfully") @@ -65,7 +65,8 @@ class PrometheusClient: async with self.session.get( f"{self.base_url}/api/v1/query", - params=params + params=params, + ssl=False ) as response: if response.status == 200: data = await response.json()