I am trying to monitor the time used of my application by individual users in order to calculate the subscription credits left, accordingly.
It is PaaS service running on AWS EC2 instances and I would like to check how long it's been running every 15 minutes or something so that I can cancel the service if the user goes beyond the limit.
I am currently using python FastAPI for the API and the backend is built using ExpressJS, but am ready to try any other service to get this running.
Any help would be greatly appreciated!