Mackerel DAY

Mackerel DAY

Mackerelリリース3周年の振り返りとこれからの成長について

Fc8163b687f0db1b9d41a57e5b607025?s=128

Hiromichi Sugiyama

October 05, 2017
Tweet

Transcript

  1. .BDLFSFMϦϦʔεप೥ͷৼΓฦΓͱ͜Ε͔Βͷ੒௕ʹ͍ͭͯ  0DU )JSPNJDIJ4VHJZBNB

  2. Hiromichi Sugiyama / ਿࢁ ޿௨ גࣜձࣾ͸ͯͳ αʔϏεɾγεςϜ։ൃຊ෦ .BDLFSFMνʔϜ ϓϩσϡʔαʔ .BDLFSFM1SPEVDU.BOBHFS

    ܦྺ  େن໛؀ڥͰͷΠϯϑϥΤϯδχΞ  ΦʔϓϯιʔεͷϞχλϦϯάπʔϧ  4BB4γεςϜ  *5*-ϕʔεͷαʔϏεϚωδϝϯτ  ͸ͯͳͰ.BDLFSFMࣄۀ΁ܞΘΔ TVHJZBNB!IBUFOBOFKQ
  3. 1 Mackerelͷ֓ཁ

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

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

  6. ௚ײతͳϢʔβʔମݧ

  7. ؆୯ʹ௚͙͸͡ΊΒΕΔ • ΨΠυʹै͏͚ͩ • ͨͬͨ਺෼ʢϫϯϥΠφʔʣ mackerel-agent written in Golang

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

  9. બ͹ΕΔཧ༝ • ಋೖʗ6*͕؆୯Ͱ෼͔Γ΍͍͢ • ։ൃεϐʔυʢຖिϦϦʔεʣ • ϚϧνΫϥ΢υͰ࢖͑Δ • ೔ຊޠαϙʔτ͕ॆ࣮ •

    %FW0QT5PPMTͷத֩ͱͯ͠׆༻Ͱ͖Δ
  10. αʔϏεϓϥϯ

  11. 2 Φεεϝػೳʢ5બʣ

  12. 1.ଟ࠼ͳΞϥʔτ௨஌ • νϟοτ΁ͷάϥϑ෇͖௨஌ 4MBDL )JQ$IBU  5ZQF5BML :BNNFS -*/& Slack

    Yammer LINE API Call SMS • 4.4΍ి࿩ՍిͰ௨஌ʢ5XJMJPʣ
  13. 2.URL֎ܗ؂ࢹ • ར༻ऀࢹ఺ͷ)551)5514؂ࢹ • ϨεϙϯελΠϜɺεςʔλείʔυɺϨεϙϯεจࣈྻ • 44-ূ໌ॻͷ༗ޮظݶ • ΧελϜϔομϝιου Web

    API URL Web Service URL ΧελϜϔομʗϝιου
  14. 3. AWS Integration • "84$MPVE8BUDI"1*͔Β༷ʑͳϝτϦοΫ΍ΠϕϯτΛऔಘ͠ՄࢹԽ • ୆ͷϗετͱͯ͠؅ཧ • &$ "-#

    $-# 3%4 &MBTUJ$BDIF 3FE4IJGU -BNCEB 424ʜ API Amazon CloudWatch Amazon RDS Amazon ELB
  15. 4.େن໛؀ڥͱͷ਌࿨ੑ • ೚ҙͷݖݶͰϢʔβʔΛΦʔΨχθʔγϣϯʢ؅ཧൣғʣ΁Ϛοϐϯά • ̎ஈ֊ೝূɺ*1ΞυϨε੍ݶɺೝূํ੍ࣜݶ ͳͲ • খن໛ʙେن໛؀ڥ·Ͱద༻͠΍͍͢ߏ଄ User A

    User B User C User D Service A Service B Role 1 Role 2 Role 3 Host 1 Host 2 Host 3 Host 4 Read Write Read Only Owner IP Address Authentication A.A.A.A Service A Service B Role 1 Role 2 Role 3 Host 1 Host 2 Host 3 Host 4 Read Write Read Only Owner IP Address Authentication A.A.A.A Service A Service B Role 1 Role 2 Role 3 Host 1 Host 2 Host 3 Host 4 Read Write Read Only Owner IP Address Authentication A.A.A.A ΦʔΨχθʔγϣϯ 9 ΦʔΨχθʔγϣϯ : ΦʔΨχθʔγϣϯ ;
  16. 5. άϥϑΞϊςʔγϣϯ • αʔϏεશମ΍ϩʔϧʹؔΘΔ༷ʑͳࣄ৅Λొ ࿥͠ɺ࣌ܥྻσʔλʔͱͷ૬ؔΛ೺Ѳ͠΍͘͢ • %FQMPZɺΩϟϯϖʔϯ • "1* $-*

    (6*͔Βૢ࡞
  17. 3 ਖ਼ࣜϦϦʔε͔Β ̏೥ؒͷ੒௕

  18. ̍೥໨ͷओཁϦϦʔε(2014-2015) 9 10 11 12 1 2 3 4 5

    6 7 8 ̐ϲ݄ͷϕʔλʔظؒ Λܦͯਖ਼ࣜϦϦʔε 4MBDL௨஌ αʔϏεϝτϦοΫ؂ࢹ εϚʔτϑΥϯରԠ άϥϑͷը૾ڞ༗ ϋοΧʔϞʔυ νΣοΫ؂ࢹ 63-֎ܗ؂ࢹ ΧελϜ μογϡϘʔυ ؂ࢹઃఆ"1*
  19. ̎೥໨ͷओཁϦϦʔε(2015-2016) 9 10 11 12 1 2 3 4 5

    6 7 8 %PDLFS؂ࢹ 8JOEPXT൛BHFOU ϩά؂ࢹ ৭֮αϙʔτ༻ΧϥʔςʔϚ 44-ূ໌ॻͷ༗ޮظݶ άϥϑͰͷࣜαϙʔτ "84ΠϯςάϨʔγϣϯ ࣜʹΑΔ؂ࢹ ̎ஈ֊ೝূ কདྷ༧ଌػೳ "NB[PO-JOVYαϙʔτ
  20. ̏೥໨ͷओཁϦϦʔε(2016-2017) 9 10 11 12 1 2 3 4 5

    6 7 8 -*/&௨஌ ϝλσʔλػೳ 5XJMJP௨஌ BHFOUϫϯϥΠφʔΠϯετʔϧ άϥϑΞϊςʔγϣϯ Ϣʔβʔݖݶͷ֦ॆ "[VSFΠϯςάϨʔγϣϯ ϓϥοτϑΥʔϜҠߦ άϥϑϘʔυ ؂ࢹϧʔϧʹϝϞ
  21. ຖिϦϦʔεܧଓத ௠෗ԽͤͣৗʹਐԽ͢ΔαʔϏε ि࿈ଓ

  22. 4 ௚ۙͷओཁͳϦϦʔεͱ τϐοΫʢલճͷMeetupʙʣ

  23. AzureΠϯςάϨʔγϣϯ • .JDSPTPGU"[VSFΛαϙʔτ • 42-%BUBCBTF 3FEJT $BDIFॱ֦࣍ େ API

  24. άϥϑϘʔυػೳ • αʔϏε಺ʹ೚ҙͷάϥϑΛूΊͨ ϖʔδʢλϒʣΛ࡞੒Մೳ

  25. γεςϜϓϥοτϑΥʔϜͷݎ࿚Խ • σΟβελϦΧόϦΛ૝ఆͨ͠ϦΞϧ λΠϜͷσʔλϨϓϦέʔγϣϯ౳ʹ ΑΔՄ༻ੑͷ޲্ • Ϋϥ΢υΞʔΩςΫνϟ׆༻ʹΑΔε έʔϥϏϦςΟͷ֬อ

  26. AWS DevOps Competency • ೔ຊاۀͰॳೝఆʂʂ

  27. ॻ੶ग़൛͞Ε·ͨ͠ʂ • Mackerel αʔό؂ࢹ[࣮ફ]ೖ໳ • SaaSͰ࣮ݱ͢Δ౷߹Πϯϑϥ؅ཧ • શࠃͷॻళAmazonͰઈࢍൃചத

  28. 5 ۙ೔ϦϦʔε༧ఆ

  29. ϝτϦοΫσʔλͷཻ౓Λҡ࣋͠ͳ͕Βอ࣋ • ̍෼ཻ౓Λ400೔อ࣋ • ϓϥεΞϧϑΝݕ౼த

  30. 6 ࠓޙͷ੒௕ʢൈਮʣ

  31. ҟৗݕ஌ • ͍ͭ΋ͱҧ͏σʔλύλʔϯ΍֎Ε஋Λࣝผ • ػցֶशͷΞϧΰϦζϜΛ׆༻ Anatomy of an anomaly detection

    model https://techblog.expedia.com/2016/07/28/applying-data-science-to-monitoring/
  32. • ઌਐతͳΞʔΩςΫνϟ΁ͷ਌࿨ੑ޲্ ίϯςφ΍ϑΝϯΫγϣϯΛ༻͍ͨαʔόϨεΞʔΩς ΫνϟͳͲ • ෼ྨʗू໿ αϙʔτ֓೦ͷ֦ॆ Service Role Host

    Host Container Container Container Function Function Role Role Host Host Role Host Host Container Function
  33. Πϕϯτػೳͷ֦ॆ • ։ൃ΍ӡ༻ʹ͓͚Δ༷ʑͳࣄ৅ΛτϥοΩϯά • ΞϥʔτɺMackerelͷૢ࡞ɺDeployɺϗετ ૿ݮ ͳͲ • ΠϕϯτۦಈͰ֤छػೳ͕࿈ಈ •

    ௨஌ɺΞϊςʔγϣϯɺΞΫγϣϯ
  34. ಈతߏ੒ϨδετϦͱͯ͠ͷॆ࣮ • ಈతͳΠϯϑϥΛޮ཰తʹ؅ཧ͢ΔͨΊͷ࢓૊Έʢϝλ σʔλػೳΛॆ࣮͍ͤͯ͘͞ʣ • ݕࡧػೳͷॆ࣮ • ೚ҙͷKey−ValueΛ༷ʑͳ৚݅Ͱݕࡧ→ϗετநग़ ͳͲ •

    ϓϥάΠϯूͷఏڙ • ΠϯετʔϧύοέʔδͳͲ
  35. ίϯϙʔωϯτؒͷؔ܎Λදݱ LB DB Proxy Proxy Proxy App App App App

    App • ෳࡶͳߏ੒΋෼͔Γ΍͘͢؅ཧՄೳ • ߏ੒೺Ѳͷ༰қԽ • Өڹൣғ΍ݪҼͷಛఆ
  36. 7 Ϗδϣϯ

  37. ಈతͰෳࡶԽ͢ΔΠϯϑϥ؀ڥ • ٸ଎ʹศརʹͳΔΠϯϑϥ؀ڥ • Ϋϥ΢υαʔϏεʢϋΠϒϦουɾϚϧνΫϥ ΢υͳͲʣ • ίϯςφΛ͸͡Ίͱ͢ΔԾ૝Խٕज़ • ୯७ੑͱෳࡶੑͷ྆໘Λ࣋ͭΞʔΩςΫνϟ

    • ϚΠΫϩαʔϏε • ෳࡶੑͱ͏·͘޲͖߹͍ɺ࢖͍͜ͳ͢ʢϏδωε ΛՃ଎ͤ͞ΔʣͨΊͷ࢓૊Έ͕ٻΊΒΕ͍ͯΔ
  38. Mackerelͷ࢖໋/໾ׂ • ΤϯδχΞʹͱͬͯzΤοδzͳαʔϏεͰ͋Γଓ͚Δ͜ͱ • ϏδωεΛՃ଎Խͤ͞ΔͨΊͷ࢓૊ΈͰ͋Δ͜ͱ • ؂ࢹ͚ͩͰͳ͘ಈతͰෳࡶͳΠϯϑϥΛΑΓ؆୯ʹ෼͔Γ΍ ͘͢࢖͍͜ͳͨ͢Ίͷ࢓૊Έ • %FW0QTϥΠϑαΠΫϧͷத֩ͱͯ͠ޮ཰Խଅਐ

    • *OGSBTUSVDUVSFBT$PEFΛΑΓ਎ۙͳଘࡏʹ
  39. MackerelͷϏδϣϯ ΤϯδχΞΛϫΫϫΫͤ͞Δ ʮ௚ײతαʔόʔ؂ࢹαʔϏεʯ

  40. ͍͞͝ʹ

  41. We are Hiring • .BDLFSFMϏδωεϚωʔδϟʔʢٸืʣ • ΞϓϦέʔγϣϯΤϯδχΞ • 8FCΦϖϨʔγϣϯΤϯδχΞ

  42. mackerel.io