Add metrics and healthcheck refactor

This commit is contained in:
2022-02-12 14:11:11 +03:00
parent 861b197981
commit 5a1ff6474f
5 changed files with 39 additions and 10 deletions

View File

@@ -1,11 +1,6 @@
import os
import httpx
response = httpx.get(
"http://localhost:8080/api/v1/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)