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
Kubernetes with Prometheus
Search
Takashi Kusumi
October 12, 2017
Technology
5
2.4k
Kubernetes with Prometheus
Kubernetes Meetup Tokyo #7
https://k8sjp.connpass.com/event/67092/
Takashi Kusumi
October 12, 2017
Tweet
Share
More Decks by Takashi Kusumi
See All by Takashi Kusumi
Recap: eBPF セッションつまみ食い / eBPF sessions @ KubeCon EU 2023
tksm
1
3.6k
Unit Testing for Prometheus Rules
tksm
6
2.8k
Z Lab の教育への取組 / Cloud Native Education Efforts at Z Lab
tksm
7
1.4k
Recap: Securing Kubernetes with Admission Controllers
tksm
2
1.5k
Istio Mutual TLS
tksm
0
690
Debugging Applications in Kubernetes
tksm
16
4k
Kubernetes v1.7 の主な変更点 / Kubernetes v1.7 features
tksm
0
1.6k
kubectl apply の仕組み / How kubectl apply works
tksm
1
9.7k
Prometheus による Kubernetes モニタリングの基礎 / Kubernetes monitoring with Prometheus
tksm
3
3k
Other Decks in Technology
See All in Technology
5分でわかるDuckDB
chanyou0311
10
3.2k
多領域インシデントマネジメントへの挑戦:ハードウェアとソフトウェアの融合が生む課題/Challenge to multidisciplinary incident management: Issues created by the fusion of hardware and software
bitkey
PRO
2
100
フロントエンド設計にモブ設計を導入してみた / 20241212_cloudsign_TechFrontMeetup
bengo4com
0
1.9k
サイボウズフロントエンドエキスパートチームについて / FrontendExpert Team
cybozuinsideout
PRO
5
38k
複雑性の高いオブジェクト編集に向き合う: プラガブルなReactフォーム設計
righttouch
PRO
0
110
レンジャーシステムズ | 会社紹介(採用ピッチ)
rssytems
0
150
Amazon Kendra GenAI Index 登場でどう変わる? 評価から学ぶ最適なRAG構成
naoki_0531
0
100
組織に自動テストを書く文化を根付かせる戦略(2024冬版) / Building Automated Test Culture 2024 Winter Edition
twada
PRO
12
3.5k
How to be an AWS Community Builder | 君もAWS Community Builderになろう!〜2024 冬 CB募集直前対策編?!〜
coosuke
PRO
2
2.8k
統計データで2024年の クラウド・インフラ動向を眺める
ysknsid25
2
840
KnowledgeBaseDocuments APIでベクトルインデックス管理を自動化する
iidaxs
1
260
NilAway による静的解析で「10 億ドル」を節約する #kyotogo / Kyoto Go 56th
ytaka23
3
370
Featured
See All Featured
Optimising Largest Contentful Paint
csswizardry
33
3k
4 Signs Your Business is Dying
shpigford
181
21k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
The World Runs on Bad Software
bkeepers
PRO
65
11k
YesSQL, Process and Tooling at Scale
rocio
169
14k
How to Ace a Technical Interview
jacobian
276
23k
It's Worth the Effort
3n
183
28k
Producing Creativity
orderedlist
PRO
341
39k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Practical Orchestrator
shlominoach
186
10k
A Tale of Four Properties
chriscoyier
157
23k
Transcript
,VCFSOFUFTXJUI1SPNFUIFVT 5BLBTIJ,VTVNJ ,B[VNBTB,PIUBLB
1SPNFUIFVT嚊銲 ,VCFSOFUFTדך崞欽 1SPNFUIFVTך铬겗 1SPN$POךزؾحؙ
1SPNFUIFVT嚊銲
1SPNFUIFVTהכ Ӝ 湊鋔㼎韋ָ⹛涸ח㢌⻉ׅ橆㞮ח黝׃湊鋔ءأذي 1VMM㘗ךًزؙٔأ湊鋔䱰欽 JOTQJSFECZ(PPHMFT#PSHNPO 㢳䕙ז4FSWJDF%JTDPWFSZח㼎䘔 ,VCFSOFUFT ($& &$ $POTVM
Ӝ $/$'ך؝ٝه٦طٝزך♧א ,VCFSOFUFTה鋵ㄤ䚍ָ넝ְ
1VMM㘗ךًزؙٔأ湊鋔 湊鋔㼎韋 ؒ٦آؑٝز 湊鋔 ءأذي )5513FRVFTU 湊鋔㼎韋 &YQPSUFS 1SPNFUIFVT )5513FTQPOTF
$16 ًٌٔ ر؍أؙ 1VTI㘗 1VMM㘗 5
1PE 1PE 4FSWJDF%JTDPWFSZ ,VCFSOFUFT 6 ,VCFOFUFT$MVTUFS 1SPNFUIFVT ,VCFSOFUFT "1*4FSWFS 1PE
/PEF ؙٓأةⰻך1PE /PEF㉏ְさׇ 1PE /PEFך*1הًزؙٔأך ه٦زٖأهٝأ ぐ1PE /PEFַً زؙٔأأؙٖ؎ف
"MFSUNBOBHFS Ӝ 1SPNFUIFVTד涪欰׃،ٓ٦ز盖椚ׅفؚٗٓي Ӝ "MFSUNBOBHFSך堣腉 ꅾ醱׃גְ،ٓ٦زך鍑嶊 ،ٓ٦زךؚٕ٦ف⻉ 鸐濼⯓ך寸㹀 鸐濼ך♧儗涸ז⨡姺 4JMFODF
Ӝ 醱侧ך鸐濼⯓ח㼎䘔 4MBDL &NBJM )5518FCIPPLזו
،ٓ٦ز鸐濼ך崧 8 "MFSUNBOBHFS 1SPNFUIFVT ،ٓ٦زٕ٦ٕך鐰⣣ ⢽ךًزؙٔأָ ך朐䡾ָ竲ְ،ٓ٦ز ˑ˒
4JMFODFך㼎韋ַ然钠 鸐濼幥דזְַ然钠 醱侧ך،ٓ٦ز♧אך鸐濼ח勲י ⢽醱侧ך؎ٝأةٝأד涪欰׃ 暴㹀ך%# ؟٦غחꟼׅ،ٓ٦ز♧אך鸐濼ח勲י 鸐濼⯓寸㹀ׅ "MFSUNBOBHFSפ鷏⥋
,VCFSOFUFTדך崞欽
,VCFSOFUFTך湊鋔⢽ Ӝ ػؿؓ٦وٝأٌصةؚٔٝ ؙٓأةⰋ⡤ךٔا٦أ朐屣 1PE׀הך$16 3". /FUXPSLך⢪欽ꆀ ،فٔ؛٦ءّٝ׀הךًزؙٔأ FY SFRT
SFTQPOTFUJNF IFBQTJ[F HPSPVUJOF侧 Ӝ ،ٓ٦ذ؍ؚٝ 1PEך殯䌢嗚⳿ $SBTI-PPQ#BDLPזו /PEFך殯䌢嗚⳿
1SPNFUIFVTךرفٗ؎ 1SPNFUIFVT LT"1*4FSWFS 1PE/PEF 1PE/PEF 1PE /PEF 湊鋔㼎韋《䖤
㹀劍涸ח湊鋔 )551 ,VCFSOFUFTؙٓأةⰻ (SBGBOB "MFSU.BOBHFS ،ٓ٦ز鸐濼 تحءُن٦س ꟼ鸬؝ٝه٦طٝزؙٓأةⰻחرفٗ؎׃ג湊鋔 1SPNFUIFVT GFEFSBUFד湊鋔 ؙٓأة㢩
湊鋔ךٖ؎َ٦ Server Kubernetes Application Ӝ /PEF&YQPSUFS娤崞湊鋔 $16 3". Ӝ
D"EWJTPS؝ٝذش嫣$16 3".FUD Ӝ LVCFTUBUFNFUSJDT1PE侧ծأذ٦ةأFUD Ӝ ،فٔ؛٦ءّٝ㔿剣ך㹋鄲 )551،ؙإأ侧 Ⳣ椚儗FUD
،فٔ؛٦ءّٝך湊鋔 Ӝ ،فٔ؛٦ءّٝ⩎ח1SPNFUIFVT䕎䒭ךؒٝسه؎ٝز㹋鄲 Ӝ 4FSWJDF⩎ח،ظذ٦ءّٝ鷄⸇ֽׅ Ⱅ䒭鏣㹀ך㜥さ 《䖤כTFSWJDF穗歋דכזֻぐ1PEח㼎׃ג遤ֲ
NFUSJDTכぐ1PEַ《䖤ׁ 1SPNFUIFVT LT"1*4FSWFS 湊鋔㼎韋《䖤 TWDBQQ QPEBQQ99 QPEBQQ:: ؕؐٝة⦼זוָ֮ծNFUSJDTכぐ1PEַ《䖤ׅ䗳銲ָ֮ NFUSJDT《䖤
TFSWJDF⯋ח FOEQPJOUT《䖤
,VCFSOFUFTך湊鋔D"EWJTPS Ӝ D"EWJTPS$POUBJOFS"EWJTPS Ӝ ぐ1PE׀הך$16 3". /FUXPSLך⢪欽桦זוַָ Ӝ LVCFMFUח穈鴥תגֶծQSPNFUIFVTח㼎䘔幥
(SBGBOBדך〳鋔⻉
D"EWJTPSך岣䠐挿⚠ Ӝ LVCFSOFUFTW劢弫דًزؙٔأָ娎䫙ֽغָؚ֮ 'JYJODPOTJTUFOU1SPNFUIFVTD"EWJTPSNFUSJDT Ӝ 1PE׀הח⟃♳ךًزؙٔأָ⳿⸂ׁ 1PEָ걼籕ח刿倜ׁה㣐ꆀך5JNF4FSJFTָ欰ת 暴חח岣䠐 Ӝ /PEF♳ך1PE侧ָ㟓ִהًزؙٔأך鸐⥋ꆀח岣䠐
,VCFSOFUFTך湊鋔LVCFTUBUFNFUSJDT Ӝ 1PEך侧װأذ٦ةأהְLTؔـآؙؑزךًزؙٔأ Ӝ LVCFSOFUFTⰕ䒭ד䲿⣘ׁגְBEEPO 1PEה׃גرفٗ؎ׅ Ӝ 1PEװ/PEFך殯䌢湊鋔דֹ $SBTI-PPQ#BDLPFUD
؟٦غ٦ך湊鋔 Ӝ 1SPNFUIFVTⰕ䒭ך/PEF&YQPSUFS⢪欽 %BFNPO4FUדぐظ٦سחرفٗ؎ׅ Ӝ $16 3". /FUXPSL -PBEזו㢳䀄ח床䞔㜠ָ《
(SBGBOBדך〳鋔⻉
ぐ%FQMPZNFOUך朐屣
1SPNFUIFVTך铬겗
铬겗1SPNFUIFVTך鏣㹀ך僥 Ӝ LTחرفٗ؎׃1SPNFUIFVTך鏣㹀וֲ僥ַׅ 鏣㹀ؿ؋؎ٕכ$POH.BQד盖椚׃ְ Ӝ ًٌٔחٍؗحءָُ鯹גְךדⱄ饯⹛ׇֻׁזְ 1SPNFUIFVTחכSFMPBE欽8FC"1*ָ欽䠐ׁגְ
鍑寸1SPNFUIFVTך鏣㹀ך僥 Ӝ 鏣㹀ؿ؋؎ٕ湊鋔׃SFMPBE"1*ד鸐濼ׅ؟؎سؕ٦㹋鄲 044דず圫ךךָⰕׁגְ Ӝ )FMNך1SPNFUIFVT$IBSUTכ+JNNZ%ZTPOָׁ㹋鄲׃ ؟؎سؕ٦ָず⺪ׁגְ Ӝ QSPNFUIFVTPQFSBUPSכ杝荈ד㹋鄲׃ך⢪גְ
铬겗1SPNFUIFVTךָًٌٔ駈זְ Ӝ ָًٌٔ駈זְה3VTIFE.PEFךٕ٦فחזֿהָ֮ Ӝ ًٌٔכTUPSBHFMPDBMUBSHFUIFBQTJ[Fؿؚٓד䭷㹀 W_ رؿٕؓزכ(# Ӝ ֿך؟؎ؤ馄ִהًٌٔ鍑佝׃״ֲהׅ
Ӝ 鍑佝ָחさזְה3VTIFE.PEFחⰅ ًزؙٔأ《䖤װٕ٦ٕ鐰⣣ָأؗحفׁ UISPUUMJOH ًزؙٔأָ《׆،ٓ٦ز♳ָזֻז
鍑寸1SPNFUIFVTךָًٌٔ駈זְ Ӝ UBSHFUIFBQTJ[F㟓װׅؕ٦ر؍شٔذ؍⡚ֻׅ Ӝ ꟼ鸬ًزؙٔأ _ךثٍؙٝ宕竲⻉ך筜䚈䏝կחזהSVTIFENPEF
ًٌٔ♳ךUJNFTFSJFT侧 أؗحفׁTDSBQF侧 Ӝ ֿך⦼כ㢩鿇ך1SPNFUIFVTַ湊鋔ׅךָ劄ת׃ְ⚠
铬겗ؕ٦ر؍شٔذ؍ָ넝ְ Ӝ ؕ٦ر؍شٔذ؍ָ넝ְהًٌٔծ$16ך⢪欽ꆀָ㢳ֻז Ӝ ِص٦ؙזٓكٕך穈さׇ5JNF4FSJFT 5JNF4FSJFT׀החؿ؋؎ٕ⡲ ر؍أؙךJOPEF侧ח岣䠐 Ӝ ٓكٕך⦼ח㣐ꆀך珏겲ָ֮ؕ٦ر؍شٔذ؍ָ넝ְ ٓكٕכ花㣐ז珏겲חזך鼘ֽ
*1،سٖأזו Ӝ سًُؗٝزדכرؿٕؓزUBSHFUIFBQTJ[F (# ד秈♰
鍑寸ؕ٦ر؍شٔذ؍ָ넝ְ Ӝ ؕ٦ر؍شٔذ؍ָ넝ְٓكٕ锃叨׃גٓكٕ幾ׅ ⳿⸂⩎ד幾ַׅSFMBCFMדESPQׅ Ӝ 植儗挿דؕ٦ر؍شٔذ؍ָ넝ְًزؙٔأ ׃ֿכך儗挿דךًزؙٔأ侧׃ַַזְ Ӝ
'FEFSBUF"1*㹀劍涸ח〨ְגծًزؙٔأך䊴ⴓ锃叨 Ӝ ⢽D"EWJTPSךOBNFծ/PEF&YQPSUFSךNPVOUQPJOU
铬겗،ٓ٦زٕ٦ٕךذأز Ӝ ،ٓ٦زך鸐濼חכ圫ղז銲稆ָꟼ⤘ׅذأزָꨇ׃ְ 1SPNFUIFVTך鏣㹀 ،ٓ٦زٕ٦ٕ 1SPN2- "MFSUNBOBHFSך鏣㹀 ꧊׃ًزؙٔأ
鍑寸&OEUPFOEךذأز欽䠐 28 1SPNFUIFVT FFUFTUFS "MFSUNBOBHFS FFUFTUFSָذأز欽ًزؙٔأ ر٦ة1SPNFUIFVTפꪪ⳿ 1SPNFUIFVTָ،ٓ٦زٕ٦ٕ ח㛇בְג،ٓ٦ز涪欰 "MFSUNBOBHFSָ،ٓ٦زFF
UFTUFSפ8FCIPPLה׃ג鸐濼 FFUFTUFSָذأز 穠卓4MBDLפ鸐濼 4MBDL
鍑寸ذأز欽ךًزؙٔأر٦ة Ӝ 1SPN2-ךِصحزذأزד⢪גְ杝荈鎉铂ⵃ欽 IUUQTHJUIVCDPNQSPNFUIFVTQSPNFUIFVTCMPCNBTUFSQSPNRM QSPNRM@UFTUHP ⢽ ˑ ˑ
/foo /bar 0s 0 0 15s 25 15 30s 50 30 45s 75 45 60s 100 60 75s 125 75 90s 150 90
1SPN$POךزؾحؙ
1SPN$PO!.VOJDI "VH
4UPSJOH#ZUFTBU4DBMF Ӝ 54%#ך圓鸡 32 ˑ˒ ˑ˒ UJNF TFSJFT ˑ˒
ˑ˒ ˑ˒ ˑ˒ ˑ˒ ˑ˒ 5JNF4FSJFTכًزٔحؙהٓك ٕך穈さׇך侧ֽ䗳銲
4UPSJOH#ZUFTBU4DBMF Ӝ 铬겗,VCFSOFUFTדכ*OBDUJWFז 5JNF4FSJFTָ欰ׄװְׅ אתًٌٔ⸬桦ָ䝤ְ Ӝ 1SPNFUIFVTWדכ54%#ךٔف ٖ٦أח״ֿך㉏겗㣐䌴ח何㊣ Ӝ
3FGT IUUQTQSPNDPOJP NVOJDIUBMLTTUPSJOHCZUFT BUTDBMF 33 UJNF TFSJFT 1PE 1PE 1PE 3PMMJOH6QEBUFזוח״ *OBDUJWFז5JNF4FSJFT欰
4UBMFOFTTJO1SPNFUIFVT Ӝ 4UBMFOFTTהכ 剣⸬דזֻז5JNF 4FSJFTؙؒٔך穠卓 ַꤐ㢩ׅ➬穈 34 UJNF TFSJFT
N ؙؒٔך㹋遤儗ⵟ 4UBMFז朐䡾ך ؙؒٔ ך㹋遤穠卓חろתזְ
4UBMFOFTTJO1SPNFUIFVT Ӝ 铬겗N䖉׆ה 湊鋔㼎韋鋅אֽזֻז儗挿ד 4UBMFז朐䡾דֿ֮הⴻⴽ׃ְ Ӝ 1SPNFUIFVTWדכ鍑寸 4UBMFדֿ֮ה爙ׅو٦ؕ٦㼪Ⰵ Ӝ
3FGT IUUQTQSPNDPOJPNVOJDIUBMLTTUBMFOFTTJO QSPNFUIFVT
#FTU1SBDUJDFTBOE#FBTUMZ1JUGBMMT Ӝ 涪邌+VMJVT7PM[ 1SPNFUIFVTךDPGPVOEFS Ӝ 1SPNFUIFVTךكأز٥فؙٓذ؍أה衅ה׃瑎 ٓكٕךㄏせ鋉秈 ٓكٕךؕ٦ر؍شٔذ؍ 5JNF4FSJFTךⴱ劍⻉
SBUF TVN ך갫䎷 ؕؐٝةٔإحزך罋䣁
.POJUPSJOH$MPVEBSFTQMBOFUTDBMF FEHFOFUXPSLXJUI1SPNFUIFVT Ӝ 涪邌.BUU#PTUPDL $MPVEBSF Ӝ 1SPNFUIFVTך剑㣐鋉垷 $MPVEBSF ך✲⢽ Ӝ
،ٓ٦ذ؍ؚٝװⴓ匿ה׃גⵃ欽 OBHJPTַ獳遤 Ӝ ⵃ欽&YQPSUFS/PEF&YQPSUFS #MBDLCPY&YQPSUFS NUBJM Ӝ 暴㹀儗ח뒊"MFSUٕ٦ٕ鏣㹀׃גؒأٖؕך鎮箺㹋倵 Ӝ 筜䚈דזְ،ٓ٦زכ+*3"ח♳־➬穈ח׃גְ IUUQTHJUIVCDPNGBCYDKJSBMFSUT
-JOLT IUUQTQSPNDPOJPNVOJDITDIFEVMF
8FBSFIJSJOH CJUMZ[MBCDBSFFST