From ae2686e799aeba8c461e23dbfa0e42fb1e9e41aa Mon Sep 17 00:00:00 2001 From: dettlaff Date: Fri, 26 Jul 2024 16:39:25 +0400 Subject: [PATCH] fix: query to query_range --- selfprivacy_api/utils/monitoring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfprivacy_api/utils/monitoring.py b/selfprivacy_api/utils/monitoring.py index 9cf2228..f6213cf 100644 --- a/selfprivacy_api/utils/monitoring.py +++ b/selfprivacy_api/utils/monitoring.py @@ -36,7 +36,7 @@ class MonitoringQueries: def _send_query(query: str, start: int, end: int, step: int) -> MonitoringResponse: try: response = requests.get( - f"{PROMETHEUS_URL}/api/v1/query", + f"{PROMETHEUS_URL}/api/v1/query_range", params={ "query": query, "start": start,