Commit Graph

17 Commits

Author SHA1 Message Date
2ab46f1994 Switched from manual tming to using trace request context. 2025-09-05 18:05:50 +02:00
afd6383daa Added a global config.py 2025-09-05 12:27:01 +02:00
139be129ee Added a bool timeout to logs. This indicated whether or not the request timed out. Preparing data for the frontend graph is put into it's own function. When data is more than 6 s apart it is considered a break in connectivity and a None point is added. 2025-09-05 11:57:34 +02:00
e1b0ab4dc5 Refactor check_service, split the different ping types to a function called ping 2025-09-05 09:19:04 +02:00
e355999c53 Disabled auto decompression for security reasons 2025-09-03 19:47:52 +02:00
39b4ee7a00 Polling of services is done based on services in DB 2025-09-03 18:32:02 +02:00
5ddafd3b98 First big step in moving towards DB storage instead of memory storage 2025-09-03 18:28:08 +02:00
5a7aa44d6c Creates logs when services are pinged 2025-09-03 17:11:02 +02:00
5b1b43f9ad Switched from httpx to aiohttp. Hopefully fixes some SSL handshake issues 2025-09-03 08:17:07 +02:00
7ad601fc14 Increased timeout to 4s and runs every 5s. Added a 5s wait in parralel with the pings to set it to a minimum of 5s but allows it to go longer. 2025-09-02 20:26:23 +02:00
1f88bcf396 Added logs for each ping. Contains no data yet and estimates 15.7 mil rows a year. Considering adding log aggregation. Moved some folders and files into mem folder due to circular import. 2025-09-02 09:34:46 +02:00
93bc1d7f04 Added option to ping with a different method (HEAD and GET) 2025-08-31 16:28:38 +02:00
363196c0db Added requirements.txt, removed an unused package 2025-08-31 12:21:34 +02:00
877fce9b7a Added a questionable ping and changed HTTP head to get 2025-08-29 23:18:36 +02:00
8e794ec7f5 Added error information to api 2025-08-29 22:55:20 +02:00
d8dd7c2c5e Made polling services async 2025-08-29 22:36:35 +02:00
d7a118931b Split up the updating of service status and serving requests into two threads. 2025-08-29 21:39:04 +02:00