mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-22 12:11:26 +00:00
fix: use query_range
This commit is contained in:
parent
8114d1580a
commit
a24e36fa01
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue