fix: use query_range

This commit is contained in:
nhnn 2024-07-14 20:03:03 +03:00
parent 8114d1580a
commit a24e36fa01

View file

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