mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 21:41:27 +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):
|
def _send_query(query: str, start: int, end: int, step: int):
|
||||||
try:
|
try:
|
||||||
response = requests.get(
|
response = requests.get(
|
||||||
f"{PROMETHEUS_URL}/api/v1/query",
|
f"{PROMETHEUS_URL}/api/v1/query_range",
|
||||||
params={
|
params={
|
||||||
"query": query,
|
"query": query,
|
||||||
"start": start,
|
"start": start,
|
||||||
|
|
Loading…
Reference in a new issue