Skip to content

🔎 Containerized Monitoring for CI/CD Pipelines in the Cloud

License

Notifications You must be signed in to change notification settings

adamalston/overwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overwatch

Overwatch · License Badge AWS Project

Introduction

Millions of developers use AWS to bring products and services to people around the world. Code is not perfect and neither are the people writing it. Those overseeing operations need to be able to assess their deployments at all times. To help with this task, I created Overwatch.

I used AWS, Docker, Prometheus, and Grafana to develop a monitoring solution that provides oversight for CI/CD pipelines running in the cloud so that auditors and operation’s personnel can quickly assess the health of mission-critical infrastructure.

The tight integration of Overwatch’s components allows personnel overseeing operations to assess failures quickly.

Systems Architecture

Systems Architecture

CloudWatch, Prometheus, and Node Exporter - each in their own Docker container - monitor an EC2 instance on AWS. Jenkins is running on the EC2 instance which is connected to the internet. When prompted via command, Jenkins begins running a CI/CD pipeline. This pipeline creates a Docker container where CentOS (Linux distribution) is virtualized. A GitHub repository is then cloned. The project in this repo is built and integration tests are run. The results of these integration tests are then relayed to Grafana for a user to see.

Setup

Cloudwatch-Exporter

Put your AWS credentials into cloudwatch-exporter.dockerfile

ENV AWS_ACCESS_KEY_ID=value \
    AWS_SECRET_ACCESS_KEY=value
Installation & Deployment
  1. Clone this repository
  2. Install Docker (Mac, Windows, Linux)
  3. In the project directory run docker-compose up
  4. Navigate to Grafana (localhost:3000) in a browser
  5. On the left sidebar, select Configuration > Data Sources
  6. Select Prometheus, set the HTTP URL to the IPv4 address of your EC2 instance with port number 9090
  7. On the left sidebar, select Dashboards > Manage
  8. Select New Dashboard

Usage

Browser Access

Prometheus: http://localhost:9090

Alertmanager: http://localhost:9093

Grafana: http://localhost:3000

Commands

Prometheus Reload: curl -X POST http://localhost:9090/-/reload

Prometheus Health Check: curl http://localhost:9090/-/healthy

CloudWatch Exporter Reload: curl -X POST http://localhost:9106/-/reload

Demo

Docker

Docker

Jenkins

Jenkins

Grafana

Grafana

Future

  • Docker Support

    • Advantages
      • Keeping the processes in separate images (and thus running them in separate containers) permits each to be maintained independently. Further, each process can be secured independently.
      • Keeping the processes in their own containers permits the running of one Prometheus container and one Grafana container for multiple containers.
      • Along the same line, there is more flexibility in relocating containers, potentially dropping Grafana to use a Grafana hosted service, etc.
    • Engineering Challenge
      • Dockerizing each monitoring platform meant that the metrics needed to be pulled from a local server instead of the platforms themselves.
  • Alertmanager Support

    • Setup the Alertmanager config in alertmanager.yml to meet your needs. Configurable options include email alerts, SMS messages, and more.
  • Automate

    • Currently, the frontend and backend work on their own with manual entry for AWS. Automate the entire setup process connecting the frontend to the backend.
  • Dashboard

    • Create a more robust dashboard.

Resources

Project icon^ from flaticon.com (edited by me)

Systems architecture diagram^ made with draw.io

Systems architecture diagram icons^ from fontawesome.com and simpleicons.org (both edited by me)


Thank you for your interest, this project was fun and insightful! If you have any feedback or questions, please reach out via email which can be found at AdamAlston.com

Back to top

About

🔎 Containerized Monitoring for CI/CD Pipelines in the Cloud

Topics

Resources

License

Stars

Watchers

Forks