diff --git a/dashboard/prometheus_utils/query.py b/dashboard/prometheus_utils/query.py index 80be3af..0a5d093 100644 --- a/dashboard/prometheus_utils/query.py +++ b/dashboard/prometheus_utils/query.py @@ -29,7 +29,7 @@ def query_prometheus(query: str) -> str | list[str]: params = { "query": query, } - response = requests.get(url=url, params=params) + response = requests.get(url=url, params=params, timeout=CHECK_TIMEOUT) response.raise_for_status() result = response.json()["data"]["result"] if len(result) > 1: