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
51
0
Share
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
More Decks by threetreeslight
See All by threetreeslight
実録 採用一投入魂
threetreeslight
0
37
Bottleneck is You
threetreeslight
0
130
Japan Office Society オフィスはスタートアップの成長を助長するのか?阻害するのか?
threetreeslight
0
130
スタートアップは見極められたくない
threetreeslight
0
57
VPoEの責務とは
threetreeslight
0
91
CiecleCIでもくもく会を支える技術
threetreeslight
0
66
Ego vs higher self
threetreeslight
0
50
Performance Hack 101
threetreeslight
0
110
複数のスタートアップを 通して得た失敗と学び
threetreeslight
0
87
Other Decks in Technology
See All in Technology
Javaコミュニティをもっと楽しむための9箇条
takasyou
0
890
Ruby::Boxでできること、Refinementsでできること
joker1007
2
290
JEP 522 Deep Dive - G1 GC同期コスト削減によるスループット向上を徹底検証&解説
tabatad
1
530
個人AIからチームAIへ:開発における品質と生産性の再設計
moongift
PRO
0
340
Oracle AI Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
6
1.8k
Claude Codeを組織で使いこなす— サーバサイドAIエージェント運用の実践知
techtekt
PRO
0
150
AIガバナンス実践 - 生成AIコネクタのデータ漏洩リスクと実務対策
knishioka
0
150
製造業のクラウド活用最適解〜AI,DXを加速するデータ基盤の作り方〜
hamadakoji
0
190
個人の発見を、組織の知恵に 〜生成AI活用を"探索"から"組織の仕組み"へ〜
kintotechdev
2
430
Platform Engineering as a Product: Criteria for Improvement and Multi-Tenant Design
kumorn5s
0
450
AIが変えた"品質の守り方"
kkakizaki
13
5.5k
「嘘をつくテスト」の失敗例から学ぶ 良いテストコード #frontend_phpcon_do
asumikam
0
110
Featured
See All Featured
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
310
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
1
130
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Utilizing Notion as your number one productivity tool
mfonobong
4
310
Documentation Writing (for coders)
carmenintech
77
5.4k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.8k
Producing Creativity
orderedlist
PRO
348
40k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
310
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
710
Mind Mapping
helmedeiros
PRO
1
220
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