How does Django calculate the healthy running time of a project?

problem description

the company asked for some information about the project. Among them, the healthy running time of the project, I do not know how to solve it.

the environmental background of the problems and what methods you have tried

the Django project has been deployed on the server with Apache.
healthy running time, which, according to the relevant documentation, is generally the difference between the current time and the initial login time; both times are easy to obtain.
if the server is restarted, the healthy runtime must be recalculated. The problem now is that it is not possible to detect whether the project has been restarted in the project.
that is, the time information related to the start and end of django or apache cannot be read in the program code.
has tried to read apache"s log file, but it is not feasible to filter through text content.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

I would like to ask all of you, is there any good way or idea to detect whether the project has started or ended? Thank you

Aug.14,2021

Server run time according to the uptime command
apache server, sorry not familiar
django prints a log log to record the startup of the project during django initialization


recommended log or operation and maintenance system

Menu