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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
27
Bottleneck is You
threetreeslight
0
120
Japan Office Society オフィスはスタートアップの成長を助長するのか?阻害するのか?
threetreeslight
0
120
スタートアップは見極められたくない
threetreeslight
0
52
VPoEの責務とは
threetreeslight
0
86
CiecleCIでもくもく会を支える技術
threetreeslight
0
61
Ego vs higher self
threetreeslight
0
46
Performance Hack 101
threetreeslight
0
100
複数のスタートアップを 通して得た失敗と学び
threetreeslight
0
81
Other Decks in Technology
See All in Technology
楽しく学ぼう!ネットワーク入門
shotashiratori
4
3.3k
us-east-1 に障害が起きた時に、 ap-northeast-1 にどんな影響があるか 説明できるようになろう!
miu_crescent
PRO
13
4.4k
組織全体で実現する標準監視設計
yuobayashi
3
490
OpenClaw を Amazon Lightsail で動かす理由
uechishingo
0
100
JAWS FESTA 2025でリリースしたほぼリアルタイム文字起こし/翻訳機能の構成について
naoki8408
1
560
JAWSDAYS2026_A-6_現場SEが語る 回せるセキュリティ運用~設計で可視化、AIで加速する「楽に回る」運用設計のコツ~
shoki_hata
0
3k
Postman v12 で変わる API開発ワークフロー (Postman v12 アップデート) / New API development workflow with Postman v12
yokawasa
0
130
VLAモデル構築のための AIロボット向け模倣学習キット
kmatsuiugo
0
160
S3はフラットである –AWS公式SDKにも存在した、 署名付きURLにおけるパストラバーサル脆弱性– / JAWS DAYS 2026
flatt_security
0
1.8k
JAWSDAYS2026 [C02] 楽しく学ぼう!AWSとは?AWSの歴史 入門
hiragahh
0
160
スクリプトの先へ!AIエージェントと組み合わせる モバイルE2Eテスト
error96num
0
180
銀行の内製開発にて2つのプロダクトを1つのチームでスクラムしてみてる話
koba1210
1
130
Featured
See All Featured
Un-Boring Meetings
codingconduct
0
220
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
150
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.8k
Test your architecture with Archunit
thirion
1
2.2k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
130
It's Worth the Effort
3n
188
29k
Documentation Writing (for coders)
carmenintech
77
5.3k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
140
So, you think you're a good person
axbom
PRO
2
2k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
270
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
300
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