Giter Club home page Giter Club logo

monitoring-and-alerting's Introduction

Monitoring and alerting project

Miscellaneous projects related to DevOps

Project details

  1. Create a local monitioring and alerting environment
  2. Components: Prometheus(monitoring), grafana(visualization), alertmanager(alerting)
  3. Test "inhibit rules" to suppress child alerts. Eg: if CPU_utilization > 90% then CPU_utilization > 70% should not fire

Prerequisites

  1. Install the following on your local system
    1. docker
    2. docker-compose

Steps to setup docker environment:

  1. mkdir monitoring_project && cd monitoring_project

  2. git clone https://github.com/Oartihsin/Devops.git

    Changes to be made. File: alertmanager/alertmanager.yml

    1. lines 3,4 -> add sender's email (Try using gmail.com emails)
    2. line 5 -> sender's password
    3. line 30 -> receiver's email (Try using gmail.com emails)
  3. run "docker-compose up -d"

  4. Important urls :

    1. prometheus : http://localhost:9000
    2. grafana : http://localhost:3000
    3. alertmanager : http://localhost:9093

Steps to increase CPU utilization on node exporter container

  1. "docker ps" -> copy the container-id for node exporter
  2. "docker exec -it sh" -> to get the shell for node exporter container
  3. "dd if=/dev/zero of=/dev/null" -> manual convert and copy files
  4. Take a new terminal tab
  5. "docker stats" -> to check CPU utilization of all containers (check node-exporter)

Inhibit rules verification

  1. You should receive mails for 2 alerts only

    1. InstanceDownCritical
    2. HostHighCpuLoad (this is for >90%)
  2. Alerts ignored

    1. HostHighCpuLoad (this is for >70%)

monitoring-and-alerting's People

Contributors

oartihsin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.