Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
How to probe prometheus & grafana. What is helm
Search
threetreeslight
November 17, 2018
Technology
0
37
How to probe prometheus & grafana. What is helm
How to probe prometheus & grafana. What is helm on shinjuku mokumoku programming vol.20
threetreeslight
November 17, 2018
Tweet
Share
More Decks by threetreeslight
See All by threetreeslight
実録 採用一投入魂
threetreeslight
0
14
Bottleneck is You
threetreeslight
0
100
Japan Office Society オフィスはスタートアップの成長を助長するのか?阻害するのか?
threetreeslight
0
110
スタートアップは見極められたくない
threetreeslight
0
42
VPoEの責務とは
threetreeslight
0
70
CiecleCIでもくもく会を支える技術
threetreeslight
0
52
Ego vs higher self
threetreeslight
0
40
Performance Hack 101
threetreeslight
0
90
複数のスタートアップを 通して得た失敗と学び
threetreeslight
0
71
Other Decks in Technology
See All in Technology
Go Connectへの想い
chiroruxx
0
150
AWS と定理証明 〜ポリシー言語 Cedar 開発の舞台裏〜 #fp_matsuri / FP Matsuri 2025
ytaka23
7
1.2k
Web Intelligence and Visual Media Analytics
weblyzard
PRO
1
6.1k
Agent Development Kit によるエージェント開発入門
enakai00
19
2.7k
Grafana MCP serverでなんかし隊 / Try Grafana MCP server
kohbis
0
250
Google I/O 2025 Keynote & Developer Keynote Overview
yanzm
0
110
Generational ZGCのメモリ運用改善 - その物理メモリ使用量、本当に正しい?
tabatad
1
280
AI とペアプロしてわかった 3 つのヒューマンエラー
takahiroikegawa
1
540
Eight Engineering Unit 紹介資料
sansan33
PRO
0
3.4k
ai bot got sick (abc 2025s version)
kojira
0
150
AIエージェント実践集中コース LT
okaru
1
190
從開發到架構設計的可觀測性實踐
philipz
0
200
Featured
See All Featured
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
228
22k
Art, The Web, and Tiny UX
lynnandtonic
299
21k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.3k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
42
2.4k
Statistics for Hackers
jakevdp
799
220k
Rebuilding a faster, lazier Slack
samanthasiow
81
9k
How to Ace a Technical Interview
jacobian
276
23k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
47
2.8k
Optimising Largest Contentful Paint
csswizardry
37
3.3k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.5k
Agile that works and the tools we love
rasmusluckow
329
21k
Transcript
How to probe prometheus & grafana What is helm @threetreeslight
on shinjuku mokumoku programming #20 1 / 19
Who VP of Engineering at Event Organizer おじさん Repro 2
/ 19
今⽇やること blog 監視のgrafana において外形監視が落ちるを解決す る Istio のchart を基にprometheus とgrafana の設定⾒直す
3 / 19
できたこと blog 監視のgrafana において外形監視が落ちるを解決 する Istio のchart を基にprometheus とgrafana の設定⾒直す
あわせて helm chart の構成理解 istio の正常(多分)稼働 4 / 19
迷ったこと 1. すでにPrometheus, Grafana でcluster 監視している場 合、Istio に同梱されているchart は使わないよね? 2.
istio は個別のnamespace に分けたほうがつかやすかった りするのか? 3. helm を複数のservice account, 複数のcluster で使う場合 どうするのか? 5 / 19
せっかくなので いくつかtips ご紹介 6 / 19
healthcheck Prometheus Grafana 7 / 19
Prometheus helth check CNCF graduagted project のprometheus 、health check endpoint
実装されてた https://github.com/prometheus/prometheus/blob/47a673c3 router.Get("/-/healthy", func(w http.ResponseWriter, r *http.Request) w.WriteHeader(http.StatusOK) fmt.Fprintf(w, "Prometheus is Healthy.\n") }) router.Get("/-/ready", readyf(func(w http.ResponseWriter, r *http.Req w.WriteHeader(http.StatusOK) fmt.Fprintf(w, "Prometheus is Ready.\n") })) 8 / 19
思ったより? 揉めずにサクッとはいっていた模様。/-/ready が 先にあったからかな? Add /-/healthy and /-/ready endpoints #2831
9 / 19
Prometheus Probe こんな感じ シンプルになった livenessProbe: httpGet: path: /-/healthy port: 9090
readinessProbe: httpGet: path: /-/ready port: 9090 10 / 19
Grafana health check で /api/health endpoint が提供されて いた。 Grafana 4.3
https://github.com/grafana/grafana/blob/e78c1b4abc7eda7 func (hs *HTTPServer) healthHandler(ctx *macaron.Context) { notHeadOrGet := ctx.Req.Method != http.MethodGet && ctx.Req.Method != if notHeadOrGet || ctx.Req.URL.Path != "/api/health" { return } data := simplejson.New() data.Set("database", "ok") data.Set("version", setting.BuildVersion) data.Set("commit", setting.BuildCommit) 11 / 19
ぼちぼちコメントが それなりにこまっていたということだろうか?ぼち ぼちコメントが有る。 grafana のicon が帰ってくるかどうかでwork around しているひともいるぐらい。 アクセスすると認証前だったらlogin 画⾯に⾶ばされ
たり、そもそもそのログイン画⾯がちょいと重かっ たりするから欲しい気持ちめっちゃわかる。 Monitoring Grafana #3302 12 / 19
Grafana Probe こんな感じ シンプルになった readinessProbe: httpGet: path: /api/health port: 3000
13 / 19
health check の仕組み が提供されているとよい よね 14 / 19
helm chart 15 / 19
What is helm helm ( ) とは、CNCF ( ) でhosting
されている kubernetes 上のpackage manager 。 https://helm.sh/ https://www.cncf.io/ 16 / 19
stop the copy-and- paste madness. この表現がなされるほどのyaml wall 1. Helm は単純にkubernetes
のresource をGo templating し ているだけ 2. local にchart をおいて複数cluster に展開することもでき るので便利だったりする 細かい話はblog にあげていく 17 / 19
Tips 終わり 18 / 19
頑張っていく 19 / 19