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.4k
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.5k
Mackerel / NewRelic / Elasticsearch Seminar
sugiyama88
1
530
Mackerel for DevOps
sugiyama88
0
510
Mackerel Meetup #10
sugiyama88
0
4k
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
return文におけるstd::moveについて
onihusube
1
1k
Symfony Mapper Component
soyuka
2
730
命名をリントする
chiroruxx
1
390
php-conference-japan-2024
tasuku43
0
230
rails statsで大解剖 🔍 “B/43流” のRailsの育て方を歴史とともに振り返ります
shoheimitani
2
930
[JAWS-UG横浜 #76] イケてるアップデートを宇宙いち早く紹介するよ!
maroon1st
0
460
Scalaから始めるOpenFeature入門 / Scalaわいわい勉強会 #4
arthur1
1
310
menu基盤チームによるGoogle Cloudの活用事例~Application Integration, Cloud Tasks編~
yoshifumi_ishikura
0
110
KubeCon + CloudNativeCon NA 2024 Overviewat Kubernetes Meetup Tokyo #68 / amsy810_k8sjp68
masayaaoyama
0
250
testcontainers のススメ
sgash708
1
120
HTTP compression in PHP and Symfony apps
dunglas
2
1.7k
複雑な仕様に立ち向かうアーキテクチャ
myohei
0
170
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
95
17k
Faster Mobile Websites
deanohume
305
30k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
The Language of Interfaces
destraynor
154
24k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.3k
Testing 201, or: Great Expectations
jmmastey
40
7.1k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Scaling GitHub
holman
458
140k
Building a Scalable Design System with Sketch
lauravandoore
460
33k
Optimising Largest Contentful Paint
csswizardry
33
3k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.6k
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