From e82a753583a240e9d35ccd0cc87898468d9ebb34 Mon Sep 17 00:00:00 2001 From: andersonid Date: Mon, 6 Oct 2025 13:56:04 -0300 Subject: [PATCH] debug: simplify PromQL queries to basic 'up' for testing --- app/core/thanos_client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/core/thanos_client.py b/app/core/thanos_client.py index fd04904..0a32697 100644 --- a/app/core/thanos_client.py +++ b/app/core/thanos_client.py @@ -146,11 +146,11 @@ class ThanosClient: end_time = datetime.now() start_time = end_time - timedelta(days=days) - # CPU utilization trend - cpu_query = "avg(rate(container_cpu_usage_seconds_total{container!=\"POD\",container!=\"\"}[5m])) by (cluster)" + # CPU utilization trend - simplified + cpu_query = "up" - # Memory utilization trend - memory_query = "avg(container_memory_working_set_bytes{container!=\"POD\",container!=\"\"}) by (cluster)" + # Memory utilization trend - simplified + memory_query = "up" cpu_data = self.query_range( query=cpu_query,