Skip to content

This repo covers one of the most important monitoring tool "Prometheus" , along with its buisness cases , architecture , installation.

Notifications You must be signed in to change notification settings

12rashic/Prometheus_learnings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌵Getting started with Prometheus

Static Badge is one of the most trending tools used for monitoring of applications hosted on Kubernetes (k8s) , as its better in maintaining and monitoring of multiple servers / applications . Also extending the functionality for "Alerting Mechanism" when working in integration with cloud native platforms like

Static BadgeStatic Badge Static Badge



💬 Pre-requisites

    📜 Minikube Installed
    📜 Kubectl Installed
    🖱 Port 9090 Open

🔌 Installation on Windows

    ⚡OS : Windows (64-bit)
    ⚡Package Manager used : Helm

Step 1

        helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
        helm repo update



ScreenShot

Step 2

        helm install <Release-name> prometheus-community/prometheus 

ScreenShot

Step 3

        kubectl get po
        kubectl get svc

ScreenShot

   kubectl expose service prometheus-server --type=NodePort --target-port=9090 --name=prometheus-server-ext
   minikube service prometheus-server-ext

follow the IP that might appear on the screen / navigate to the

IP Address :Port

mentioned.

ScreenShot



Business cases where prometheus transformed applications

🖥️ Considering your application consist of multiple microservices , which are interdepenedent on each other , in some case one of your service fails , followed by which you experience multiple service failure in your cluster , without Monitoring tool you cannot get exact insights , or supposedly you won't be able to trace down what went wrong , casuing this issue



🚥🚨 But surely with a monitoring tool like Static Badge , you will get notified, when a particular service goes down , so you can quickly trace back and fix it , with constact monitoring of metrics .



🧱 Prometheus Architecture

ScreenShot

Main Components of Prometheus

    🧊 Data Retrival Worker
    🧊 Time series Database
    🧊 PromQL Queries
    🪄 Web UI

    🟢 Data Retrival Worker : Is responsible for pulling all the metrics /data from resources like Server , Application
    🟢 Time Storage Database : For storing all data that is gathered by Data Retrival Worker
    🟢 Prom-QL queries : All the queries that are fired on database (TSW)
    🟢 WebUi : For showcasing the results from all datasources like Grafana / etc

About

This repo covers one of the most important monitoring tool "Prometheus" , along with its buisness cases , architecture , installation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published