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
Mackerel Meetup #8
Search
Hiromichi Sugiyama
October 17, 2016
Programming
0
5.3k
Mackerel Meetup #8
新機能「メタデータ」がもたらす 次世代のインフラマネジメントについて
Hiromichi Sugiyama
October 17, 2016
Tweet
Share
More Decks by Hiromichi Sugiyama
See All by Hiromichi Sugiyama
Mackerel Meetup #11
sugiyama88
3
11k
Mackerel Roadmap 2017.11.29
sugiyama88
0
3k
Mackerel DAY
sugiyama88
1
7.4k
Mackerel / NewRelic / Elasticsearch Seminar
sugiyama88
1
530
Mackerel for DevOps
sugiyama88
0
500
Mackerel Meetup #10
sugiyama88
0
3.9k
Mackerel, AWS, Twilio Hands-On Seminar
sugiyama88
0
430
SaaS/OSSを進化させる オープン・エコシステムについて Mackerel×Vulsの例
sugiyama88
0
1.6k
Mackerel Meetup #9
sugiyama88
0
4.6k
Other Decks in Programming
See All in Programming
Laravel や Symfony で手っ取り早く OpenAPI のドキュメントを作成する
azuki
2
120
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
910
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
100
Realtime API 入門
riofujimon
0
150
ローコードSaaSのUXを向上させるためのTypeScript
taro28
1
610
CSC509 Lecture 11
javiergs
PRO
0
180
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
1
100
ふかぼれ!CSSセレクターモジュール / Fukabore! CSS Selectors Module
petamoriken
0
150
2024/11/8 関西Kaggler会 2024 #3 / Kaggle Kernel で Gemma 2 × vLLM を動かす。
kohecchi
5
920
エンジニアとして関わる要件と仕様(公開用)
murabayashi
0
290
ピラミッド、アイスクリームコーン、SMURF: 自動テストの最適バランスを求めて / Pyramid Ice-Cream-Cone and SMURF
twada
PRO
10
1.3k
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
110
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
Embracing the Ebb and Flow
colly
84
4.5k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Building Your Own Lightsaber
phodgson
103
6.1k
Side Projects
sachag
452
42k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
The Art of Programming - Codeland 2020
erikaheidi
52
13k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
Transcript
Mackerel Meetup #8 17 Oct 2016 ৽ػೳʮϝλσʔλʯ͕ͨΒ͢ ࣍ੈͷΠϯϑϥϚωδϝϯτʹ͍ͭͯ Hatena Co.,
Ltd. Hiromichi Sugiyama
Hiromichi Sugiyama / ਿࢁ ௨ גࣜձࣾͯͳ αʔϏεɾγεςϜ։ൃຊ෦ .BDLFSFMνʔϜ ϓϩσϡʔαʔ ܦྺ
େखۀͷ*5ࣄۀձࣾ େنڥͰͷΠϯϑϥΤϯδχΞ ΦʔϓϯιʔεͷϞχλϦϯάπʔϧ 4BB4γεςϜ *5*-ϕʔεͷαʔϏεϚωδϝϯτ ͯͳͰ.BDLFSFMࣄۀܞΘΔ
[email protected]
1 ֓ཁͱ࠷ۙͷτϐοΫ
Mackerelͱʁ • "SaaSܕ"αʔόʔࢹαʔϏε • ΤϯδχΞ͕ཉ͔ͬͨ͠zϫΫϫΫz͢ΔΑ ͏ͳػೳΛఏڙ͠ɺѹతͳzޮԽzΛ࣮ݱ • ͯͳͷओྗαʔϏεΛ͑͞͞ଓ͚͖ͯͨ ʢ࠷ߴͷυοάϑʔσΟϯάʣ
ΞʔΩςΫνϟʔ • ΤʔδΣϯτ͔Β ϝτϦοΫΛߘ )5514 3&45"1*
ײతͳϢʔβʔମݧ
؆୯ʹ͙͡ΊΒΕΔ • ΨΠυʹै͏͚ͩ • ͨͬͨ mackerel-agent written in Golang
࠷খͷϧʔϧ͕࠷ߴͷརศੑΛ • ΤʔδΣϯτΛ্ཱͪ͛Δ͚ͩͰ • ࣗಈతʹࢹ͕࢝·Γ • ಉ͡ϩʔϧͷϗετಉ͡άϥϑ
ৗʹਐԽ͠ଓ͚ΔαʔϏε 毎週新機能のリリースを継続中 陳腐化せず常に進化 ि࿈ଓ
બΕΔཧ༝ • ಋೖʗUI͕؆୯Ͱ͔Γ͍͢ • ։ൃεϐʔυʢຖिϦϦʔεʣ • ϚϧνΫϥυͰ͑Δ • ຊޠαϙʔτ͕ॆ࣮ •
Έ߹ΘͤͯDevOpsͷத֩ͱͯ͠׆༻Ͱ͖Δ
αʔϏεϓϥϯ
ਖ਼ࣜϦϦʔε͔Β̎पʂ 2014.9.17ʙ
ʮLINE NotifyʯॳظରԠαʔϏεʹ • LINE Developer Day 2016 Ͱհ͞Ε·ͨ͠ https://business.line.me/en/news/20050439 http://linedevday.linecorp.com/jp/2016/
Hands-On SeminarΛఆظ։࠵ • ΑΓͨ͘͞ΜͷํʑMackerelͷྑ͞Λମݧ ͯ͘͠ॴΛఏڙ • ݄̎ճͷ։࠵Λ༧ఆ
2 Φεεϝػೳʢ6બʣ
1.ଟ࠼ͳΞϥʔτ௨ • νϟοτͷάϥϑ͖௨ Slack, HipChat, TypeTalk, Yammer, New! LINE Slack
Yammer LINE API Call SMS • NEWʂSMSిՍిͰ௨ʢTwilioʣ ۙϦϦʔε
2.URL֎ܗࢹ • ར༻ऀࢹͷ)551)5514ࢹ • ϨεϙϯελΠϜɾεςʔλείʔυɾΩʔϫʔυɾ44-ূ໌ॻ • /FX ΧελϜϔομ Web Service
URL ۙϦϦʔε
3.ࢹϧʔϧͷίʔυԽ • zInfrastructure as Codez • mkr monitor diff/pull/push •
JSONܗࣜͰϧʔϧΛѻ͏ • ࢹϧʔϧΛGitͰཧ͢Δ͜ͱ
4. AWS Integration • AWS CloudWatch API͔Β༷ʑͳϝτϦοΫΠϕ ϯτΛऔಘ͠ՄࢹԽ • 1ͷϗετͱͯ͠ཧ
• EC2,ELB,RDS,ElastiCache͔Βॱ֦࣍େத API Amazon CloudWatch Amazon RDS Amazon ELB
• ̎ஈ֊ೝূͷαϙʔτ • ϦʔυΦϯϦʔϢʔβʔ • AWS Integration AssumeRoleରԠ • New!
IPΞυϨε੍ݶ ۙϦϦʔε 5.ηΩϡϦςΟػೳڧԽ
6. άϥϑͷνϟϯωϧߘ • ؾʹͳΔάϥϑͷঢ়ଶΛνϟοτͰ؆୯ʹ ٞͰ͖·͢
3 ৽ػೳʮϝλσʔλʯ͕ͨΒ͢ ࣍ੈͷΠϯϑϥϚωδϝϯτʹ͍ͭͯ
ಈతͰศརʹͳΔΠϯϑϥετϥΫνϟ • ෛՙঢ়گʹԠͯ͡ಈతʹίϯςφϗετ ͕Ճ͞ΕͨΓ͢Δ͜ͷ࣌ • ඞཁͳใʢਓͦΕͧΕʣΛΑΓޮతʹ ू͠ɺ࠶ར༻͍͢͠ߏ͕ٻΊΒΕͯ ͍Δ
Mackerel͕ఏڙ͢Δͷ • ಈతͰॊೈɺ࠶ར༻͍͢͠σʔλετΞ • σʔλߏҙʹఆٛ • API,CLI,GUI,PluginͳͲΛར༻
ϝλσʔλػೳ • ҙͷKey-ValueΛJSONσʔλͱͯ͠ Mackerelొ • ༷ʑͳ༻్Ͱ࠶ར༻Մೳ API,CLI,Plugin... CREATE READ UPDATE
DELETE { "type": 12345, "region": "jp", "env": "staging", "instance_type": "c4.xlarge" } { "type": 12345, "region": "jp", "env": "staging", "instance_type": "c4.xlarge" } Host / Administrator
ϝλσʔλػೳ • ઌߦͯ͠ɺϗετͷϝλσʔλొΛAPIͰαϙʔτ • ϗετ͝ͱʹҙͷ໊લۭؒΛఆٛ͠ɺJSONσʔλͱ ͯ͠ొʢ໊લۭؒσʔλαΠζʹ੍͋Γʣ
ϝλσʔλػೳ • mackerelͱ͍͏໊લۭؒγεςϜͰར༻ • ࢹϧʔϧͳͲԠ༻͍ͯ͘͠ • CPU CoreͳͲ͍Ζ͍Ζ • ࠓޙɺCLIʢmkrʣϝλσʔλϓϥάΠϯɺॊೈͳ
ݕࡧػೳͳͲΛϦϦʔε༧ఆ
Ϣʔεέʔε • ಈతͳߋ৽Ͱৗʹ࠷৽ͷঢ়ଶΛѲͯ͠࠶ར༻ • ϗετڥͷछผʢDevelopment,Testing,Staging,ProductionʣΛఆٛͯ͠ɺ ProductionڥͷΈΛநग़ͯ͠ΦϖϨʔγϣϯ • Πϯετʔϧύοέʔδʢύοέʔδ໊ɿόʔδϣϯ൪߸ʣͰɺ੬ऑੑ͕ൃ֮ ͨ͠ͷ͕ಋೖ͞Ε͍ͯΔϗετͷΈΛநग़ͯ͠ߏཧπʔϧͰҰׅߋ৽ •
ӬଓతͳTCPίωΫγϣϯͷϦετΛάϥϑσʔλͱͯ͠࠶ར༻ → ίʔυཧ͕Infrastructure as Codeͷଅਐʹߩݙ
4 Ϗδϣϯ
࣌ΫϥυԽͷྲྀΕ • ։ൃπʔϧΫϥυ • svn/git → GitHub (GitHub Enterprise) •
Jenkins → TravisCI, CircleCI • ࣮ߦڥΫϥυ • ΦϯϓϨ → AWS, GCP, Azure,SoftLayer
MackerelͷྲྀΕ • ӡ༻πʔϧΫϥυ • Zabbix, Nagios → Cloudwatch, NewRelic and
Mackerel !! • ͍͍͢UIʹΑΔɺΑΓ҆ఆͨ͠ӡ༻Λ
Infrastructure as Code • ϗετઃఆ͕ίʔυԽ͞ΕͨʢChef/puppetʣ • MackerelͷઃఆίʔυͰཧ • ࢹϧʔϧ/μογϡϘʔυͷίʔυԽ •
ॱ࣍ɺAPIԽΛਪਐ
Mackerelͷະདྷ • All-in-OneαʔϏεͰͳ͍ • ༷ʑͳπʔϧ/αʔϏεͱͷ࿈ܞ • Slack/GitHub/Reactio • γεςϜཧͷίΞπʔϧͱͯ͠ͷMackerel
DevOpsͷத֩ͱͯ͠ • ϥΠϑαΠΫϧશମͷޮԽΛଅਐ %FW 0QT
MackerelͷϏδϣϯ ΤϯδχΞΛϫΫϫΫͤ͞Δ ʮײతαʔόʔࢹαʔϏεʯ
͍͞͝ʹҰͭ
͞ΒͳΔਐԽ
αʔϏε
࣍ੈMackerelϓϩδΣΫτਐߦத • Λࢧ͑Δ৽ͨͳΞʔΩςΫνϟͷมֵʂ • ॊೈͳσʔλཧ • ΞϧΰϦζϜࢧԉʢػցֶशɺ౷ܭཧͷԠ༻ʣ • ͳͲଟͷػೳ֦ॆΛ༧ఆ •
͝ظԼ͍͞ʂ
͍͞͝ʹ͏Ұͭ
We are Hiring • ηʔϧεΤϯδχΞʢٸืʣ • 8FCΞϓϦέʔγϣϯΤϯδχΞ • 8FCΦϖϨʔγϣϯΤϯδχΞʢٸืʣ
mackerel.io