From 470f62bb0756c9f30480f4a094f0a24a987a903c Mon Sep 17 00:00:00 2001 From: dettlaff Date: Wed, 24 Jul 2024 21:04:03 +0400 Subject: [PATCH] fix: add debug --- selfprivacy_api/utils/prometheus.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/selfprivacy_api/utils/prometheus.py b/selfprivacy_api/utils/prometheus.py index 3e25a2d..e1911e6 100644 --- a/selfprivacy_api/utils/prometheus.py +++ b/selfprivacy_api/utils/prometheus.py @@ -33,9 +33,11 @@ class PrometheusQueries: "step": step, }, ) + print(response) if response.status_code != 200: raise Exception("Prometheus returned unexpected HTTP status code") json = response.json() + print(json) return PrometheusQueryResult( result_type=json["result_type"], result=json["result"] )