Skip to content

πŸ–₯ Prometheus and Grafana monitoring setup on a Kubespray Kubernetes cluster running the sock shop microservice

Notifications You must be signed in to change notification settings

ari-hacks/kubernetes-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Kubernetes Monitoring

TODOS

➜ Install Prometheus Operator

➜ Configure Grafana Dashboard

Requirements

  • Kubernetes/kubectl
  • helm3

Note: This setup is using kubespray and the sock shop demo microservice. For cluster setup and microservice deployment instructions click here

Install Prometheus

  1. Create a namespace for prometheus

     kubectl create namespace monitoring
  2. Get repo info

    helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
    
    helm repo add stable https://charts.helm.sh/stable
    
    helm repo update
  3. Install prometheus operator with helm charts

    helm install prometheus prometheus-community/kube-prometheus-stack --namespace monitoring
    
  4. Verify pods are running

    kubectl get pods -n monitoring
  5. Access the dashboard

     kubectl port-forward $(kubectl get pods -n monitoring -o name | grep grafana) 8080:3000 -n monitoring
     #defualt login admin | prom-operator

Configure Grafana Dashboard

  1. Once logged in navigate to the home button and check out the different metrics available

    #ex/
    Kubernetes/Compute Resources/Namespace(Pods)

About

πŸ–₯ Prometheus and Grafana monitoring setup on a Kubespray Kubernetes cluster running the sock shop microservice

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published