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
43
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
26
Bottleneck is You
threetreeslight
0
120
Japan Office Society オフィスはスタートアップの成長を助長するのか?阻害するのか?
threetreeslight
0
120
スタートアップは見極められたくない
threetreeslight
0
52
VPoEの責務とは
threetreeslight
0
85
CiecleCIでもくもく会を支える技術
threetreeslight
0
60
Ego vs higher self
threetreeslight
0
46
Performance Hack 101
threetreeslight
0
100
複数のスタートアップを 通して得た失敗と学び
threetreeslight
0
79
Other Decks in Technology
See All in Technology
今、求められるデータエンジニア
waiwai2111
2
1.4k
欲しいを叶える個人開発の進め方 / How to Run an Indie Project That Brings Your Ideas to Life
endohizumi
0
340
既存のログ監視システムをクラウドっぽく実装してみた
tjmtrhs
0
190
Agentic Codingの実践とチームで導入するための工夫
lycorptech_jp
PRO
0
150
社内ワークショップで終わらせない 業務改善AIエージェント開発
lycorptech_jp
PRO
1
340
Goで実現する堅牢なアーキテクチャ:DDD、gRPC-connect、そしてAI協調開発の実践
fujidomoe
3
740
ソフトウェアアーキテクトのための意思決定術: Create Decision Readiness—The Real Skill Behind Architectural Decision
snoozer05
PRO
5
490
20260222ねこIoTLT ねこIoTLTをふりかえる
poropinai1966
0
200
ローカルでLLMを使ってみよう
kosmosebi
0
190
器用貧乏が強みになるまで ~「なんでもやる」が導いたエンジニアとしての現在地~
kakehashi
PRO
5
530
バイブコーディングで作ったものを紹介
tatsuya1970
0
180
EMから現場に戻って見えた2026年の開発者視点
sudoakiy
1
410
Featured
See All Featured
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
190
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2k
A better future with KSS
kneath
240
18k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
The Curious Case for Waylosing
cassininazir
0
250
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Ethics towards AI in product and experience design
skipperchong
2
210
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
85
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
400
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
280
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