Grafana :- managing metrics, logs and traces
For helm installation
https://helm.sh/ --> Click download a binary
https://github.com/helm/helm/releases/tag/v4.2.3
Click Linux amd64 (checksum / e9b88b4ee95b18c706839c28d3a0220e5bc470e9cd9262410c90793c45ff8b7c)
Copy the link https://get.helm.sh/helm-v4.2.3-linux-amd64.tar.gz
[root@master01 ~]# ls -al
[root@master01 ~]# tar -xf helm-v4.2.3-linux-amd64.tar.gz
[root@master01 ~]# ls
[root@master01 ~]# cd linux-amd64/
[root@master01 linux-amd64]# ls
[root@master01 linux-amd64]# cp helm /usr/bin/
[root@master01 linux-amd64]# ls
[root@master01 linux-amd64]# cd
[root@master01 ~]# helm version
Click install
[root@master01 ~]# helm repo list
[root@master01 ~]# helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
[root@master01 ~]# helm repo list
[root@master01 ~]# kubectl create ns observe
[root@master01 ~]# helm install my-prometheus prometheus-community/prometheus --version 29.21.0 -n observe
Solution:
[root@master01 ~]# helm install my-prometheus prometheus-community/prometheus --version 29.21.0 -n observe
[root@master01 ~]# kubectl get pod
[root@master01 ~]# helm list -A
[root@master01 ~]# helm list -n observe
[root@master01 ~]# helm repo list
[root@master01 ~]# helm list -A
[root@master01 ~]# helm uninstall my-prometheus -n observe
[root@master01 ~]# helm list -A
[root@master01 ~]# vi prometheus.yaml
server:
persistentVolume:
enabled: false
service:
type: ClusterIP
alertmanager:
enabled: true
persistentVolume:
enabled: false
pushgateway:
enabled: false
nodeExporter:
enabled: true
kubeStateMetrics:
enabled: true
To check syntax
[root@master01 ~]#dnf install -y python3
[root@master01 ~]# python3 -c "import yaml; yaml.safe_load(open('prometheus.yaml'))" && echo "VALID" || echo "INVALID"
[root@master01 ~]# helm install my-prometheus prometheus-community/prometheus --version 29.21.0 -f prometheus.yml
[root@master01 ~]# kubectl get pods -n observe
[root@master01 ~]# kubectl get pods -n observe -o wide