diff --git a/selfprivacy_api/utils/monitoring.py b/selfprivacy_api/utils/monitoring.py index 4771bfb..762e35a 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="Prometheus returned unexpected HTTP status code" + error=f"Prometheus returned unexpected HTTP status code. Error: {response.text}" ) 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="Prometheus returned unexpected HTTP status code" + error=f"Prometheus returned unexpected HTTP status code. Error: {response.text}" ) json = response.json() if result_type and json["data"]["resultType"] != result_type: diff --git a/tests/data/turned_on.json b/tests/data/turned_on.json index 9c285b1..a5241ec 100644 --- a/tests/data/turned_on.json +++ b/tests/data/turned_on.json @@ -65,6 +65,10 @@ }, "roundcube": { "enable": true + }, + "prometheus": { + "enable": true, + "location": "sdb" } }, "volumes": [