Prometheus and Grafana - 3sam5oh/webtoon-search-service GitHub Wiki

Prometheus / Grafana λͺ¨λ‹ˆν„°λ§ 아킀텍쳐 κ΅¬μ„±ν•˜λ©΄μ„œ κ΄€λ ¨ λ‚΄μš©λ“€ μ •λ¦¬ν•΄λ΄…λ‹ˆλ‹€. λ‚΄μš© μΆ”κ°€ ν™˜μ˜

πŸ”₯ Prometheus

πŸ¦– Grafana

βš’οΈ κ΅¬ν˜„

Note

Helm Chartλ₯Ό μ‚¬μš©ν•˜μ—¬ κ΅¬ν˜„ν•˜μ˜€μŠ΅λ‹ˆλ‹€. Helm κ΄€λ ¨ μœ„ν‚€λŠ” λ³„λ„λ‘œ 정리 μ˜ˆμ •

Prometheus Helm Chart Grafana Helm Chart

1. 섀계

1-1. Monitoring Architecture

<μ•„ν‚€ν…μ²˜>

2. Prometheus Install

Promehteus Install (Helm Chart)


3. Grafana Install

Grafana Install (Helm Chart)

1. Grafana helm Repo add & update

$ helm repo add grafana https://grafana.github.io/helm-charts

2. values.yml

  • Grafana 의 values.yml νŒŒμΌμ—μ„œλŠ” 기본적으둜 μ‚¬μš©ν•  datasourace (ν˜„μž¬λŠ” Prometheus만 μ‚¬μš©, μ°¨ν›„ Trace 관리λ₯Ό μœ„ν•΄ Tempo λ“± μΆ”κ°€ μ˜ˆμ •) 와 둜그인 μ‹œ μ‚¬μš©ν•  admin κ³„μ •μ˜ 아이디/λΉ„λ°€λ²ˆν˜Έ λ§Œμ„ μˆ˜μ •ν•¨.
  • datasource λ₯Ό μΆ”κ°€ ν•˜μ§€ μ•Šμ€ κ²½μš°μ—λŠ” μ„€μΉ˜ ν›„ GUI 의 datasource 에 κ°€μ„œ 직접 μΆ”κ°€ν•œλ‹€.
  • λΉ„λ°€λ²ˆν˜Έ λ³€κ²½ μ•ˆν• μ‹œ μž„μ˜λ‘œ μƒμ„±λœ λΉ„λ°€λ²ˆν˜Έκ°€ λ‚˜μ˜€λ―€λ‘œ μˆ˜μ •ν•˜λŠ”κ±Έ μΆ”μ²œ
  • μ‚¬μš©μžκ°€ values.yml 을 μ •μ˜ν•˜μ§€ μ•Šμ•„λ„ λ””ν΄νŠΈ κ°’μœΌλ‘œ μ‹€ν–‰ & λͺ¨λ‹ˆν„°λ§μ€ κ°€λŠ₯


n. μ—λŸ¬

ν”„λ‘œμ νŠΈ 진행 쀑 λ°œμƒν•œ μ—λŸ¬ 정리

1. Kube Prometheus Stack

처음 μŠ€νƒμ„ κ΅¬ν˜„ν•  λ•ŒλŠ” Prometheus/Grafana 각각 κ΅¬ν˜„ν•˜μ§€ μ•Šκ³ , Kube Prometheus Stack 을 μ‚¬μš©ν•˜μ—¬ ν•œ λ²ˆμ— κ΅¬ν˜„ν•˜λ €κ³  ν•˜μ˜€μŒ. 문제점 μ •λ¦¬ν•˜κΈ°

⚠️ **GitHub.com Fallback** ⚠️