Giter Site home page Giter Site logo

helm-monitoring's Introduction

helm-monitoring

Install Prometheus using helm:

Update dependencies for prometheus

cd  prometheus
helm dependency update
cd ../

Create prometheus namespace:

kubectl create namespace prometheus

Install prometheus using helm:

helm install prometheus prometheus \
	--namespace prometheus \
	--set alertmanager.persistentVolume.storageClass="gp2" \
	--set server.persistentVolume.storageClass="gp2" 

Check details:

kubectl get all -n prometheus

Change service type as LoadBalancer from ClusterIP:

kubectl edit svc prometheus-server -n prometheus

image

Check service of prometheus

kubectl get svc -n prometheus

Check promethus in webUI:

http://a4e29142a2b51463fac7d3238106d32b-896983688.us-east-1.elb.amazonaws.com/graph

image

Install Grafana using helm:

Create file with grafana.yaml name:

datasources:
  datasources.yaml:
    apiVersion: 1
    datasources:
    - name: Prometheus
      type: prometheus
      url: http://prometheus-server.prometheus.svc.cluster.local
      access: proxy
      isDefault: true

Update dependencies for grafana

cd grafana
helm dependency update
cd ../

Create namespe with grafana:

kubectl create namespace grafana 

Install grafana using below command:

helm install grafana grafana \
	--namespace  grafana \
	--set persistence.storageClassName="gp2" \
	--set persistence.enabled=true \
	--set adminPassword='admin123' \
	--values grafana.yaml \
	--set service.type=LoadBalancer

Check details:

kubectl get all -n grafana

Check service of grafana

kubectl get svc -n grafana

image

Credentials:

username: admin
password: admin123   

Cluster Monitoring Dashboard

For creating a dashboard to monitor the cluster:

  • Click '+' button on left panel and select 'Import'.
  • Enter 3119 dashboard id under Grafana.com Dashboard.
  • Click 'Load'.
  • Select 'Prometheus' as the endpoint under prometheus data sources drop down.
  • Click 'Import'. This will show monitoring dashboard for all cluster nodes:

image

Pods Monitoring Dashboard

For creating a dashboard to monitor all the pods:

  • Click '+' button on left panel and select ‘Import’.
  • Enter 6417 dashboard id under Grafana.com Dashboard.
  • Click 'Load'.
  • Enter Kubernetes Pods Monitoring as the Dashboard name.
  • Click change to set the Unique identifier (uid).
  • Select 'Prometheus' as the endpoint under prometheus data sources drop down.s
  • Click 'Import'.

image

helm-monitoring's People

Contributors

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