Add metrics and refactor healthcheck

This commit is contained in:
2022-02-12 13:58:39 +03:00
parent 19fe00335e
commit 11a283a721
5 changed files with 63 additions and 15 deletions

View File

@@ -1,11 +1,6 @@
import os
import httpx
response = httpx.get(
"http://localhost:8080/healthcheck",
headers={"Authorization": os.environ["API_KEY"]},
)
response = httpx.get("http://localhost:8080/healthcheck")
print(f"HEALTHCHECK STATUS: {response.status_code}")
exit(0 if response.status_code == 200 else 1)