fix: add debug

This commit is contained in:
dettlaff 2024-07-24 21:04:03 +04:00
parent e8e60be3bb
commit 470f62bb07

View file

@ -33,9 +33,11 @@ class PrometheusQueries:
"step": step, "step": step,
}, },
) )
print(response)
if response.status_code != 200: if response.status_code != 200:
raise Exception("Prometheus returned unexpected HTTP status code") raise Exception("Prometheus returned unexpected HTTP status code")
json = response.json() json = response.json()
print(json)
return PrometheusQueryResult( return PrometheusQueryResult(
result_type=json["result_type"], result=json["result"] result_type=json["result_type"], result=json["result"]
) )