
모든 강의 이미지 출처는 [인프런] 쿠버네티스 어나더 클래스(지상편) - Spring 1,2 입니다.

쿠버네티스 생태계에는 다양한 도구들이 있지만 처음에는 위 도구들만 인지하도록 하자.
[ 쿠버네티스 적용 전 ]
[ 쿠버네티스 적용 후 ]
▶ 일프로 (https://github.com/k8s-1pro/install.git) github에서 다운로드
[root@k8s-master ~] yum -y install git
# 로컬 저장소 생성
git init monitoring
git config --global init.defaultBranch main
cd monitoring
# remote 추가
git remote add -f origin https://github.com/k8s-1pro/install.git
# sparse checkout 설정
git config core.sparseCheckout true
echo "ground/k8s-1.27/prometheus-2.44.0" >> .git/info/sparse-checkout
echo "ground/k8s-1.27/loki-stack-2.6.1" >> .git/info/sparse-checkout
# 다운로드
git pull origin main
# 설치
kubectl apply --server-side -f ground/k8s-1.27/prometheus-2.44.0/manifests/setup
kubectl wait --for condition=Established --all CustomResourceDefinition --namespace=monitoring
kubectl apply -f ground/k8s-1.27/prometheus-2.44.0/manifests
# 설치 확인 ([root@k8s-master]#)
kubectl get pods -n monitoring
# 설치
kubectl apply -f ground/k8s-1.27/loki-stack-2.6.1
# 설치 확인
kubectl get pods -n loki-stack
접속 URL : http://192.168.56.30:30001

Home > Connections > Connect data > Loki 선택
URL에 내용 입력 : http://loki-stack.loki-stack:3100
예제로 아래 대시보드를 사용 > 왼쪽 하단 Copy ID 클릭
https://grafana.com/grafana/dashboards/1860-node-exporter-full/

Home > Dashboards > Import dashboard > 복사된 ID 입력 후 Load

import 된 Dashboard 확인
