[Kubernetes - 5๋จ๊ณ: Prometheus + Grafana ๋ชจ๋ํฐ๋ง]
์ด ๊ธ์์ ๋ค๋ฃจ๋ ๊ฒ Prometheus๋ก Kubernetes ํด๋ฌ์คํฐ ๋ฉํธ๋ฆญ์ ์์งํ๊ณ , Grafana ๋์๋ณด๋๋ก ์๊ฐํํ๋ ๋ชจ๋ํฐ๋ง ๊ธฐ์ด๋ฅผ ๋ค๋ฃน๋๋ค. ์ ์์ง์ Kubernetes 4๋จ๊ณ: Helm โ Helm Chart ์ค์น์ values.yaml ์ปค์คํฐ๋ง์ด์ง ์ด ๋จ๊ณ์์ ํด๊ฒฐํ๋ ค๋ ๋ฌธ์ Kubernetes ํด๋ฌ์คํฐ์์ Pod, Node์ CPU/๋ฉ๋ชจ๋ฆฌ ์ฌ์ฉ๋์ ์ค์๊ฐ์ผ๋ก ํ์ ํ์ง ๋ชปํ๋ฉด, ์ฅ์ ๋์๊ณผ ๋ฆฌ์์ค ์ต์ ํ๊ฐ ๋ถ๊ฐ๋ฅํฉ๋๋ค. Prometheus๊ฐ ๋ฉํธ๋ฆญ์ ์์งํ๊ณ , Grafana๊ฐ ์ด๋ฅผ ๋์๋ณด๋๋ก ์๊ฐํํฉ๋๋ค. ์ด ๊ตฌ์กฐ๋ MLOps์์ ๋ชจ๋ธ ์๋น ์ง์ฐ, ํ์ต ๋ฆฌ์์ค ๋ชจ๋ํฐ๋ง์ ๊ธฐ๋ฐ์ด ๋ฉ๋๋ค. ์ค์ต ์ฝ๋: GitHub (Monitoring) ๐งญ ์ ์ฒด ํ๋ฆ ์์ฝ โ Helm ์ ์ฅ์ ์ถ๊ฐ โก Prometheus ์ค์น (๋ฉํธ๋ฆญ ์์ง) โข Grafana ์ค์น (๋์๋ณด๋ ์๊ฐํ) โฃ Web UI ์ ์ โ Prometheus ์ฐ๊ฒฐ โ ๋์๋ณด๋ ๋ถ๋ฌ์ค๊ธฐ ๐ ๋๋ ํ ๋ฆฌ ๊ตฌ์ฑ k8s-monitoring/ โโโ values-prometheus.yaml # Prometheus ์ปค์คํฐ๋ง์ด์ง ์ค์ โโโ values-grafana.yaml # Grafana ์ค์ + ๋น๋ฐ๋ฒํธ ์ง์ โโโ README.md โ๏ธ [1๋จ๊ณ] Helm ์ ์ฅ์ ์ถ๊ฐ helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo add grafana https://grafana.github.io/helm-charts helm repo update ๐ฆ [2๋จ๊ณ] Prometheus ์ค์น ๊ธฐ๋ณธ ์ค์น helm install prometheus prometheus-community/prometheus kubectl port-forward svc/prometheus-server 9090:80 ์ ์: http://localhost:9090 ...