Changes between Initial Version and Version 1 of k8smonitoring2023


Ignore:
Timestamp:
Dec 7, 2023, 8:03:01 AM (12 months ago)
Author:
deepthi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • k8smonitoring2023

    v1 v1  
     1'''Monitoring'''
     2Install helm3 on master node
     3
     4{{{
     5curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
     6chmod 700 get_helm.sh
     7./get_helm.sh
     8}}}
     9
     10Add the Helm Stable Charts for your local client.
     11
     12`helm repo add stable https://charts.helm.sh/stable`
     13
     14Add prometheus Helm repo
     15
     16{{{
     17helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
     18helm search repo prometheus-community
     19}}}
     20
     21Create Prometheus namespace
     22
     23`kubectl create namespace Prometheus`
     24
     25Install kube-prometheus-stack
     26
     27Below is the helm command to install kube-prometheus-stack. This installation formally called prometheus-operator also comes with a grafana deployment embedded.
     28
     29`helm install stable prometheus-community/kube-prometheus-stack -n Prometheus`
     30
     31In order to make prometheus and grafana available outside the cluster, use NodePort instead of ClusterIP.
     32{{{
     33kubectl edit svc stable-kube-prometheus-sta-prometheus -n Prometheus
     34kubectl edit svc stable-grafana -n Prometheus
     35}}}
     36
     37Search type: LoadBalancer and change it to type: NodePort.
     38
     39{{{
     40kubectl get svc -n prometheus NAME
     41
     42
     43}}}
     44
     45log into stable-grafana from your PC. Use node port. Username/Password: admin / prom-operator
     46
     47How to Create Kubernetes Monitoring Dashboard?
     48
     49For creating a dashboard to monitor the cluster:
     50
     51Click ‘+’ button on left panel and select ‘Import’.
     52
     53Enter 12740 dashboard id under Grafana.com Dashboard.
     54
     55Click ‘Load’.
     56
     57Select ‘Prometheus’ as the endpoint under prometheus data sources drop down. Click ‘Import’.
     58
     59This will show monitoring dashboard for all cluster nodes
     60
     61How to Create Kubernetes Cluster Monitoring Dashboard?
     62
     63For creating a dashboard to monitor the cluster:
     64
     65Click ‘+’ button on left panel and select ‘Import’.
     66
     67Enter 3119 dashboard id under Grafana.com Dashboard.
     68
     69Click ‘Load’.
     70
     71Select ‘Prometheus’ as the endpoint under prometheus data sources drop down. Click ‘Import’.
     72
     73This will show monitoring dashboard for all cluster nodes
     74
     75Create POD Monitoring Dashboard :-
     76
     77For creating a dashboard to monitor the cluster:
     78
     79Click ‘+’ button on left panel and select ‘Import’.
     80
     81Enter 6417 dashboard id under Grafana.com Dashboard.
     82
     83Click ‘Load’.
     84
     85Select ‘Prometheus’ as the endpoint under prometheus data sources drop down. Click ‘Import’.
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
     96