Enhance health check functionality and logging in POE project. Added detailed sensor status reporting to health check response, improved error handling during server startup, and updated logging format for better visibility. Adjusted health check parameters in Nomad configuration for increased stability and monitoring accuracy.
This commit is contained in:
@ -236,8 +236,8 @@ def main_loop():
|
||||
|
||||
logging.info(f"Starting monitoring of {len(MODBUS_HOSTS)} sensors")
|
||||
logging.info("System status can be monitored at:")
|
||||
logging.info(f" - Health: http://localhost:8080/health")
|
||||
logging.info(f" - Sensors: http://localhost:8080/sensors")
|
||||
logging.info(f" - Health: http://0.0.0.0:8080/health")
|
||||
logging.info(f" - Sensors: http://0.0.0.0:8080/sensors")
|
||||
|
||||
# Main loop to read and publish data from all hosts
|
||||
while True:
|
||||
|
Reference in New Issue
Block a user