fix: query to query_range

This commit is contained in:
dettlaff 2024-07-26 16:39:25 +04:00
parent c5b0257105
commit ae2686e799

View file

@ -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,