Giter VIP home page Giter VIP logo

devops_monitoring's Introduction

The Coders Guild

DevOps L4 Monitoring Prometheus Demo

A small demo using containers to demonstrate Prometheus and Grafana basics.

Usage

Ensure you have Docker/Rancher/Podman or something similar and Docker Compose installed.

  • docker-compose up will launch the lab after downloading the three containers.
  • Look at the 'Exploring' steps below
  • 'docker-compose down' will then shut everything down (you may need to CTRL+C to exit the running state first)

Exploring

You have just launched 5 containers!

  1. 2x Node Exporter These Node Exporter containers expose lots of system metrics for us to experiment with, you can read more about them here: https://hub.docker.com/r/prom/node-exporter. In the real world these would be our servers, containers or functions running our production code and apps.

  2. Prometheus (http://localhost:9090/)

    • Click 'Service'
      • Click 'Service Discovery' and have a look at the discovered details for the Node Exporter containers
    • Click 'Graph'
      • Click the little icon that looks like a globe, next to the 'Execute' button.
      • Select one of the exposed metrics, like 'node_load1'
      • Click 'Execute'.
    • Have a look at the other metrics our Node Exporters are exporting.
  3. Grafana (http://localhost:3000) We will use Grafana to explore our collected metrics from the Prometheus datasourve

    • log in with username 'admin' & password 'admin', set a new password or click 'skip'
    • By default we've already configured the datasource to use our Prometheus service
    • Under 'Dashboards',
    • Select 'Node Exporter Full'
  4. cAdvisor To analyze resource usage and performance characteristics of running containers https://github.com/google/cadvisor https://hub.docker.com/r/google/cadvisor (DEPRECEATED) User gcr.io/cadvisor/cadvisor

devops_monitoring's People

Contributors

raneemr05 avatar

Watchers

 avatar  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.