This is a simple Flask application that monitors the CPU and memory usage of the system. It provides an alert message if either CPU or memory utilization exceeds 80%.
In the project directory, build the Docker image using:
docker build -t demo-dockerized-flasksystemmonitor .
Run the Docker container with the following command:
docker run -d -p 5000:5000 demo-dockerized-flasksystemmonitor
- The app displays the current CPU and memory usage.
- If either the CPU or memory utilization exceeds 80%, an alert message will be displayed.