Slide 1

Slide 1 text

Mackerel Meetup #8 17 Oct 2016 ৽ػೳʮϝλσʔλʯ͕΋ͨΒ͢ ࣍ੈ୅ͷΠϯϑϥϚωδϝϯτʹ͍ͭͯ Hatena Co., Ltd. Hiromichi Sugiyama

Slide 2

Slide 2 text

Hiromichi Sugiyama / ਿࢁ ޿௨ גࣜձࣾ͸ͯͳ αʔϏεɾγεςϜ։ൃຊ෦ .BDLFSFMνʔϜ ϓϩσϡʔαʔ ܦྺ େख੡଄ۀͷ*5ࣄۀձࣾ େن໛؀ڥͰͷΠϯϑϥΤϯδχΞ ΦʔϓϯιʔεͷϞχλϦϯάπʔϧ 4BB4γεςϜ *5*-ϕʔεͷαʔϏεϚωδϝϯτ ͸ͯͳͰ.BDLFSFMࣄۀ΁ܞΘΔ [email protected]

Slide 3

Slide 3 text

1 ֓ཁͱ࠷ۙͷτϐοΫ

Slide 4

Slide 4 text

Mackerelͱ͸ʁ • "SaaSܕ"αʔόʔ؂ࢹαʔϏε • ΤϯδχΞ͕ཉ͔ͬͨ͠zϫΫϫΫz͢ΔΑ ͏ͳػೳΛఏڙ͠ɺѹ౗తͳzޮ཰ԽzΛ࣮ݱ • ͸ͯͳͷओྗαʔϏεΛ͑͞͞ଓ͚͖ͯͨ ʢ࠷ߴͷυοάϑʔσΟϯάʣ

Slide 5

Slide 5 text

ΞʔΩςΫνϟʔ • ΤʔδΣϯτ͔Β ϝτϦοΫΛ౤ߘ )5514 3&45"1*

Slide 6

Slide 6 text

௚ײతͳϢʔβʔମݧ

Slide 7

Slide 7 text

؆୯ʹ௚͙͸͡ΊΒΕΔ • ΨΠυʹै͏͚ͩ • ͨͬͨ਺෼ mackerel-agent written in Golang

Slide 8

Slide 8 text

࠷খͷϧʔϧ͕࠷ߴͷརศੑΛ • ΤʔδΣϯτΛ্ཱͪ͛Δ͚ͩͰ • ࣗಈతʹ؂ࢹ͕࢝·Γ • ಉ͡ϩʔϧͷϗετ͸ಉ͡άϥϑ΁

Slide 9

Slide 9 text

ৗʹਐԽ͠ଓ͚ΔαʔϏε 毎週新機能のリリースを継続中 陳腐化せず常に進化 ि࿈ଓ

Slide 10

Slide 10 text

બ͹ΕΔཧ༝ • ಋೖʗUI͕؆୯Ͱ෼͔Γ΍͍͢ • ։ൃεϐʔυʢຖिϦϦʔεʣ • ϚϧνΫϥ΢υͰ࢖͑Δ • ೔ຊޠαϙʔτ͕ॆ࣮ • ૊Έ߹ΘͤͯDevOpsͷத֩ͱͯ͠׆༻Ͱ͖Δ

Slide 11

Slide 11 text

αʔϏεϓϥϯ

Slide 12

Slide 12 text

ਖ਼ࣜϦϦʔε͔Β̎प೥ʂ 2014.9.17ʙ

Slide 13

Slide 13 text

ʮLINE NotifyʯॳظରԠαʔϏεʹ • LINE Developer Day 2016 Ͱ঺հ͞Ε·ͨ͠ https://business.line.me/en/news/20050439 http://linedevday.linecorp.com/jp/2016/

Slide 14

Slide 14 text

Hands-On SeminarΛఆظ։࠵ • ΑΓͨ͘͞Μͷํʑ΁Mackerelͷྑ͞Λମݧ ͯ͠௖͘৔ॴΛఏڙ • ݄̎ճͷ։࠵Λ༧ఆ

Slide 15

Slide 15 text

2 Φεεϝػೳʢ6બʣ

Slide 16

Slide 16 text

1.ଟ࠼ͳΞϥʔτ௨஌ • νϟοτ΁ͷάϥϑ෇͖௨஌ Slack, HipChat, TypeTalk, Yammer, New! LINE Slack Yammer LINE API Call SMS • NEWʂSMS΍ి࿩ՍిͰ௨஌ʢTwilioʣ ۙ೔ϦϦʔε

Slide 17

Slide 17 text

2.URL֎ܗ؂ࢹ • ར༻ऀࢹ఺ͷ)551)5514؂ࢹ • ϨεϙϯελΠϜɾεςʔλείʔυɾΩʔϫʔυɾ44-ূ໌ॻ • /FX ΧελϜϔομ Web Service URL ۙ೔ϦϦʔε

Slide 18

Slide 18 text

3.؂ࢹϧʔϧͷίʔυԽ • zInfrastructure as Codez • mkr monitor diff/pull/push • JSONܗࣜͰϧʔϧΛѻ͏ • ؂ࢹϧʔϧΛGitͰ؅ཧ͢Δ͜ͱ΋

Slide 19

Slide 19 text

4. AWS Integration • AWS CloudWatch API͔Β༷ʑͳϝτϦοΫ΍Πϕ ϯτΛऔಘ͠ՄࢹԽ • 1୆ͷϗετͱͯ͠؅ཧ • EC2,ELB,RDS,ElastiCache͔Βॱ֦࣍େத API Amazon CloudWatch Amazon RDS Amazon ELB

Slide 20

Slide 20 text

• ̎ஈ֊ೝূͷαϙʔτ • ϦʔυΦϯϦʔϢʔβʔ • AWS Integration AssumeRoleରԠ • New! IPΞυϨε੍ݶ ۙ೔ϦϦʔε 5.ηΩϡϦςΟػೳڧԽ

Slide 21

Slide 21 text

6. άϥϑͷνϟϯωϧ౤ߘ • ؾʹͳΔάϥϑͷঢ়ଶΛνϟοτͰ؆୯ʹ ٞ࿦Ͱ͖·͢

Slide 22

Slide 22 text

3 ৽ػೳʮϝλσʔλʯ͕΋ͨΒ͢ ࣍ੈ୅ͷΠϯϑϥϚωδϝϯτʹ͍ͭͯ

Slide 23

Slide 23 text

ಈతͰศརʹͳΔΠϯϑϥετϥΫνϟ • ෛՙঢ়گʹԠͯ͡ಈతʹίϯςφ΍ϗετ ͕௥Ճ͞ΕͨΓ͢Δ͜ͷ࣌୅ • ඞཁͳ৘ใʢਓͦΕͧΕʣΛΑΓޮ཰తʹ ू໿͠ɺ࠶ར༻͠΍͍͢ߏ଄͕ٻΊΒΕͯ ͍Δ

Slide 24

Slide 24 text

Mackerel͕ఏڙ͢Δ΋ͷ • ಈతͰॊೈɺ࠶ར༻͠΍͍͢σʔλετΞ • σʔλߏ଄͸೚ҙʹఆٛ • API,CLI,GUI,PluginͳͲΛར༻

Slide 25

Slide 25 text

ϝλσʔλػೳ • ೚ҙͷ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

Slide 26

Slide 26 text

ϝλσʔλػೳ • ઌߦͯ͠ɺϗετ΁ͷϝλσʔλొ࿥ΛAPIͰαϙʔτ • ϗετ͝ͱʹ೚ҙͷ໊લۭؒΛఆٛ͠ɺJSONσʔλͱ ͯ͠ొ࿥ʢ໊લۭؒ਺΍σʔλαΠζʹ੍໿͋Γʣ

Slide 27

Slide 27 text

ϝλσʔλػೳ • mackerelͱ͍͏໊લۭؒ͸γεςϜͰར༻ • ؂ࢹϧʔϧͳͲ΁Ԡ༻͍ͯ͘͠ • CPU Core਺ͳͲ͍Ζ͍Ζ • ࠓޙ͸ɺCLIʢmkrʣ΍ϝλσʔλϓϥάΠϯɺॊೈͳ ݕࡧػೳͳͲΛϦϦʔε༧ఆ

Slide 28

Slide 28 text

Ϣʔεέʔε • ಈతͳߋ৽Ͱৗʹ࠷৽ͷঢ়ଶΛ೺Ѳͯ͠࠶ར༻ • ϗετ؀ڥͷछผʢDevelopment,Testing,Staging,ProductionʣΛఆٛͯ͠ɺ Production؀ڥͷΈΛநग़ͯ͠ΦϖϨʔγϣϯ • Πϯετʔϧύοέʔδʢύοέʔδ໊ɿόʔδϣϯ൪߸ʣͰɺ੬ऑੑ͕ൃ֮ ͨ͠΋ͷ͕ಋೖ͞Ε͍ͯΔϗετͷΈΛநग़ͯ͠ߏ੒؅ཧπʔϧͰҰׅߋ৽ • ӬଓతͳTCPίωΫγϣϯͷϦετΛάϥϑσʔλͱͯ͠࠶ར༻ → ίʔυ؅ཧ͕Infrastructure as Codeͷଅਐʹߩݙ

Slide 29

Slide 29 text

4 Ϗδϣϯ

Slide 30

Slide 30 text

࣌୅͸Ϋϥ΢υԽͷྲྀΕ • ։ൃπʔϧ͸Ϋϥ΢υ΁ • svn/git → GitHub (GitHub Enterprise) • Jenkins → TravisCI, CircleCI • ࣮ߦ؀ڥ΋Ϋϥ΢υ΁ • ΦϯϓϨ → AWS, GCP, Azure,SoftLayer

Slide 31

Slide 31 text

Mackerel΁ͷྲྀΕ • ӡ༻πʔϧ΋Ϋϥ΢υ΁ • Zabbix, Nagios → Cloudwatch, NewRelic and Mackerel !! • ࢖͍΍͍͢UIʹΑΔɺΑΓ҆ఆͨ͠ӡ༻Λ

Slide 32

Slide 32 text

Infrastructure as Code • ϗετઃఆ͕ίʔυԽ͞ΕͨʢChef/puppetʣ • Mackerelͷઃఆ΋ίʔυͰ؅ཧ • ؂ࢹϧʔϧ/μογϡϘʔυͷίʔυԽ • ॱ࣍ɺAPIԽΛਪਐ

Slide 33

Slide 33 text

Mackerelͷະདྷ • All-in-OneαʔϏεͰ͸ͳ͍ • ༷ʑͳπʔϧ/αʔϏεͱͷ࿈ܞ • Slack/GitHub/Reactio • γεςϜ؅ཧͷίΞπʔϧͱͯ͠ͷMackerel

Slide 34

Slide 34 text

DevOpsͷத֩ͱͯ͠ • ϥΠϑαΠΫϧશମͷޮ཰ԽΛଅਐ %FW 0QT

Slide 35

Slide 35 text

MackerelͷϏδϣϯ ΤϯδχΞΛϫΫϫΫͤ͞Δ ʮ௚ײతαʔόʔ؂ࢹαʔϏεʯ

Slide 36

Slide 36 text

͍͞͝ʹҰͭ

Slide 37

Slide 37 text

͞ΒͳΔਐԽ

Slide 38

Slide 38 text

αʔϏε੒௕

Slide 39

Slide 39 text

࣍ੈ୅MackerelϓϩδΣΫτਐߦத • ੒௕Λࢧ͑Δ৽ͨͳΞʔΩςΫνϟ΁ͷมֵʂ • ॊೈͳσʔλ؅ཧ • ΞϧΰϦζϜࢧԉʢػցֶशɺ౷ܭཧ࿦ͷԠ༻ʣ • ͳͲଟ਺ͷػೳ֦ॆΛ༧ఆ • ͝ظ଴Լ͍͞ʂ

Slide 40

Slide 40 text

͍͞͝ʹ΋͏Ұͭ

Slide 41

Slide 41 text

We are Hiring • ηʔϧεΤϯδχΞʢٸืʣ • 8FCΞϓϦέʔγϣϯΤϯδχΞ • 8FCΦϖϨʔγϣϯΤϯδχΞʢٸืʣ

Slide 42

Slide 42 text

mackerel.io