mertcakmak2 / Kubernetes-Prometheus-Grafana

Helm installation. Prometheus and Grafana installation with Helm.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Helm Kurulumu

  curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -
  sudo apt-get install apt-transport-https --yes
  echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
  sudo apt-get update
  sudo apt-get install helm

image

Prometheus Kurulumu

  kubectl create namespace monitoring
  kubectl get ns
  helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
  helm repo update
  helm install k8spromethuesstack --namespace monitoring prometheus-community/kube-prometheus-stack

image image

Grafana Ui İçin NodePort Verme İşlemi

  • kubectl patch svc k8spromethuesstack-grafana -p '{"spec": {"type": "NodePort"}}' -n monitoring

http://167.172.105.147:31513 ⇒ Grafana UI

Prometheus Ui İçin NodePort Verme İşlemi

  • kubectl patch svc k8spromethuesstack-kube-pr-prometheus -p '{"spec": {"type": "NodePort"}}' -n monitoring

  • kubectl get secret --namespace monitoring prometheus-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo

http://167.172.105.147:30385 ⇒ Prometheus UI

About

Helm installation. Prometheus and Grafana installation with Helm.