diff --git a/selfprivacy_api/utils/monitoring.py b/selfprivacy_api/utils/monitoring.py index 762e35a..630e843 100644 --- a/selfprivacy_api/utils/monitoring.py +++ b/selfprivacy_api/utils/monitoring.py @@ -70,7 +70,7 @@ class MonitoringQueries: ) if response.status_code != 200: return MonitoringQueryError( - error=f"Prometheus returned unexpected HTTP status code. Error: {response.text}" + error=f"Prometheus returned unexpected HTTP status code. Error: {response.text}. The query was {query}" ) json = response.json() if result_type and json["data"]["resultType"] != result_type: @@ -96,7 +96,7 @@ class MonitoringQueries: ) if response.status_code != 200: return MonitoringQueryError( - error=f"Prometheus returned unexpected HTTP status code. Error: {response.text}" + error=f"Prometheus returned unexpected HTTP status code. Error: {response.text}. The query was {query}" ) json = response.json() if result_type and json["data"]["resultType"] != result_type: