0% found this document useful (0 votes)
6 views2 pages

Monitoring Application Documentation

The document outlines a Monitoring Application project that tracks CPU and memory utilization in real-time using Flask, Docker, Amazon ECR, and EKS. It details the application components, workflow for deployment, and expected outputs, including alerts for high resource usage. Future improvements suggested include integrating Prometheus and Grafana for enhanced monitoring and implementing autoscaling.

Uploaded by

Anshika Uniyal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Monitoring Application Documentation

The document outlines a Monitoring Application project that tracks CPU and memory utilization in real-time using Flask, Docker, Amazon ECR, and EKS. It details the application components, workflow for deployment, and expected outputs, including alerts for high resource usage. Future improvements suggested include integrating Prometheus and Grafana for enhanced monitoring and implementing autoscaling.

Uploaded by

Anshika Uniyal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Project Documentation: Monitoring Application with AWS ECR, EKS, and Flas

1. Introduction

This project is a Monitoring Application that tracks system resources like CPU and memory

utilization in real-time. Built using Flask, it alerts users when resource utilization crosses a defined

threshold. The application is containerized using Docker, pushed to Amazon Elastic Container

Registry (ECR), and deployed on Amazon Elastic Kubernetes Service (EKS).

2. Project Components

a. Application Code (app.py)

- Monitors CPU and memory usage using the psutil library.

- Displays the resource metrics on a web page.

- Provides an alert message when the resource utilization exceeds 80%.

b. Containerization (Dockerfile)

- The Dockerfile builds a Docker image for the Flask application.

- This image is uploaded to Amazon ECR.

c. Amazon ECR Configuration (ecr.py)

- Creates a repository in Amazon ECR.

- Pushes the Docker image to the ECR repository.

d. Kubernetes Deployment (eks.py)

- Deploys the application in the EKS cluster.

- Creates a service to expose the application.


e. Dependencies (requirements.txt)

- Lists necessary Python libraries.

3. Workflow

1. Build the Docker image and push it to ECR.

2. Deploy the application on EKS.

3. Access the application through the service URL.

4. Expected Output

- Web page showing real-time CPU and memory usage.

- Alert message when utilization exceeds 80%.

5. Conclusion

This project demonstrates containerizing a Flask application, pushing the image to ECR, and

deploying it on EKS.

6. Future Improvements

- Add Prometheus and Grafana for monitoring.

- Implement autoscaling.

- Enable log storage.

7. References

- Flask Documentation: flask.palletsprojects.com

- ECR Documentation: aws.amazon.com/ecr

- Kubernetes Documentation: kubernetes.io/docs

You might also like