Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 1.46 KB

README.md

File metadata and controls

59 lines (38 loc) · 1.46 KB

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)