From 6357fb436c697eb73d615f6ea73238c2aa59c2ae Mon Sep 17 00:00:00 2001 From: dettlaff Date: Sat, 15 Jun 2024 22:31:39 +0400 Subject: [PATCH] fix: query_range to query --- 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 ba87d97..e319c63 100644 --- a/selfprivacy_api/utils/prometheus.py +++ b/selfprivacy_api/utils/prometheus.py @@ -19,7 +19,7 @@ class PrometheusInfo: class PrometheusQueries: @staticmethod - def _send_request(endpoint="/api/v1/query_range", params=None) -> PrometheusInfo: + def _send_request(endpoint="/api/v1/query", params=None) -> PrometheusInfo: try: response = requests.get(f"{PROMETHEUS_URL}{endpoint}", params=params) return PrometheusInfo(