mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 21:41:27 +00:00
fix: query to query_range
This commit is contained in:
parent
c5b0257105
commit
ae2686e799
|
@ -36,7 +36,7 @@ class MonitoringQueries:
|
||||||
def _send_query(query: str, start: int, end: int, step: int) -> MonitoringResponse:
|
def _send_query(query: str, start: int, end: int, step: int) -> MonitoringResponse:
|
||||||
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