Skip to content

tomarv2/monitoring

Repository files navigation

k8s: Monitoring

This repo is used to deploy monitoring for a k8s cluster. There are two parts to monitoring a k8s cluster:

  • Monitoring the cluster itself
  • Monitoring the application(s) deployed on the cluster
  • Also, there is a component to send alerts on elasticsearch results using elastalert

I am using 6 components to monitor the k8s infrastructure:

Note:

  • I am using EFS to store all the deployment related files. For example all files for prometheus, alertmanager, blackbox, etc are stored in EFS and shared by all the k8s clusters (working on moving out of EFS).


There are two options that I use to trigger prometheus repo as part of the CICD process:

  • User repo contains a stage deploy monitoring which is triggered as part of the project.

  • Sister repo concept: whenever a project repo is created it creates another repo for project infrastructure which takes care of everything related to infrastructure (like teraform, monitoring, etc).