-
Notifications
You must be signed in to change notification settings - Fork 10
/
grafanainstallation
44 lines (26 loc) · 1.28 KB
/
grafanainstallation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
tep 1 Create a GKE cluster
Step 2 Create a Namespace monitor (good practice)
kubectl create ns monitor
Step 3 go to helm repo (code) of Promothus and grafana Helm code is available on
https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack
Step 4 Add the repo in helm
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
Step 5 Install the Grafana and Promothus
helm install kube-prometheus-stack prometheus-community/kube-prometheus-stack --namespace monitor
“kube-prometheus-stack” is the name of the release. You can change this if you want.
“prometheus-community/kube-prometheus-stack” is the name of the chart.
“monitor” is the name of the namespace where we are going to deploy the operator.
admin/prom-operator
Step 6 You can verify your installation using:
kubectl get pods -n monitor
Step 7 create a service of grafana
Grafana Service :- create a service of on 3000 port as a loadbalancer
Step 8 unlock grafana
admin/prom-operator
Step 9 Explore Autoconfigured grafana dashboards
Some Dashbords
General / Kubernetes / Compute Resources / Cluster
General / Kubernetes / Compute Resources / Namespace (Pods)
Step 10 Delete the Helm chart
helm uninstall [RELEASE_NAME]