develop #1
@@ -29,7 +29,7 @@ def query_prometheus(query: str) -> str | list[str]:
|
|||||||
params = {
|
params = {
|
||||||
"query": query,
|
"query": query,
|
||||||
}
|
}
|
||||||
response = requests.get(url=url, params=params)
|
response = requests.get(url=url, params=params, timeout=CHECK_TIMEOUT)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
result = response.json()["data"]["result"]
|
result = response.json()["data"]["result"]
|
||||||
if len(result) > 1:
|
if len(result) > 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user