From a24e36fa01db83eba42ff5131c59ed393e1acfc1 Mon Sep 17 00:00:00 2001 From: nhnn Date: Sun, 14 Jul 2024 20:03:03 +0300 Subject: [PATCH] fix: use query_range --- selfprivacy_api/utils/prometheus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfprivacy_api/utils/prometheus.py b/selfprivacy_api/utils/prometheus.py index 552801c..a9935a2 100644 --- a/selfprivacy_api/utils/prometheus.py +++ b/selfprivacy_api/utils/prometheus.py @@ -25,7 +25,7 @@ class PrometheusQueries: def _send_query(query: str, start: int, end: int, step: int): try: response = requests.get( - f"{PROMETHEUS_URL}/api/v1/query", + f"{PROMETHEUS_URL}/api/v1/query_range", params={ "query": query, "start": start,