monitor: HTTP-Checks mit GET statt HEAD
Grafana /api/health ist für GET dokumentiert; HEAD kann 405 liefern.
This commit is contained in:
parent
723196fe64
commit
0ec7ae7407
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ def check_all() -> list[str]:
|
||||||
msg = None
|
msg = None
|
||||||
for attempt in range(retries):
|
for attempt in range(retries):
|
||||||
try:
|
try:
|
||||||
r = requests.head(
|
r = requests.get(
|
||||||
check["url"], timeout=timeout, allow_redirects=True, headers=_headers
|
check["url"], timeout=timeout, allow_redirects=True, headers=_headers
|
||||||
)
|
)
|
||||||
if r.status_code < 400:
|
if r.status_code < 400:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue