Mackerel Meetup #10

Mackerel Meetup #10

Microsoft Azure IntegrationとWindowsサポートの強化

Fc8163b687f0db1b9d41a57e5b607025?s=128

Hiromichi Sugiyama

April 27, 2017
Tweet

Transcript

  1. .FFUVQ .JDSPTPGU"[VSF*OUFHSBUJPOͱ8JOEPXTαϙʔτͷڧԽ "QS )JSPNJDIJ 4VHJZBNB

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

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

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

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

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

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

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

  9. ৗʹਐԽ͠ଓ͚ΔαʔϏε ຖि৽ػೳͷϦϦʔεΛܧଓத ௠෗ԽͤͣৗʹਐԽ ि࿈ଓ

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

    ૊Έ߹Θͤͯ%FW0QTͷத֩ͱͯ͠׆༻Ͱ͖Δ
  11. αʔϏεϓϥϯ

  12. Mackerel, AWS, Twilio ߹ಉϋϯζΦϯ։࠵ • ̏αʔϏεͷಛੑΛ׆༻͠ɺ؂ࢹΞϥʔτͷ ి࿩࿈བྷΛγεςϜԽ͢Δ࣮ફతͳϋϯζΦ ϯηϛφʔΛ։࠵͠·ͨ͠

  13. 2 Φεεϝػೳʢ5+1બʣ

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

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

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

    $-# 3%4 &MBTUJ$BDIF 3FE4IJGU -BNCEB ॱ֦࣍େத API Amazon CloudWatch Amazon RDS Amazon ELB
  17. 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 ΦʔΨχθʔγϣϯ : ΦʔΨχθʔγϣϯ ;
  18. 5. άϥϑΞϊςʔγϣϯ • αʔϏεશମ΍ϩʔϧʹؔΘΔ༷ʑͳࣄ৅Λొ ࿥͠ɺ࣌ܥྻσʔλʔͱͷ૬ؔΛ೺Ѳ͠΍͘͢ • %FQMPZɺΩϟϯϖʔϯ • "1* $-*

    (6*͔Βૢ࡞
  19. 6.ϝλσʔλػೳ • ೚ҙͷ,FZ—7BMVFΛ+40/σʔλͱͯ͠.BDLFSFM΁ετΞ • ৗʹ࠷৽ͷ৘ใΛݕࡧͯ͠࠶ར༻͢Δ͜ͱ͕Մೳ • ϓϥάΠϯूΛ044ఏڙʢ༧ఆʣ • Πϯετʔϧύοέʔδ •

    ੬ऑੑεΩϟφʢ7VMTʣ 7VMT76-OFSBCJMJUZ 4DBOOFS IUUQTHJUIVCDPNGVUVSFBSDIJUFDUWVMTCMPCNBTUFS3&"%.&KBNE
  20. 3 Microsoft Azure Integration ͱ WindowsαϙʔτͷڧԽ

  21. • ΤϯλʔϓϥΠζاۀͷ.BDLFSFMར༻͕ٸ૿த • ։ൃ΍ӡ༻ʹ͓͚Δ৽ͨͳมֵͷݺͼਫͱͯ͠͝׆༻ • Ϋϥ΢υҠߦʹࡍͯ͠ैདྷܕ؂ࢹͷݶք • ϚϧνΫϥ΢υ؀ڥʢΦϯϓϨ΋ؚΉʣͷҰݩ؂ࢹ • େن໛؀ڥʹ΋ద༻͠΍͍͢ॊೈͳΞΫηείϯτϩʔϧ

    • ؂ࢹΞϥʔτͷࣗಈՍిʢ5XJMJP࿈ܞʣ • ಈతΠϯϕϯτϦ؅ཧʢϝλσʔλػೳʣ اۀͰͷAzure࠾༻֦େʹ൐ͬͯ
  22. AzureΠϯςάϨʔγϣϯ • .JDSPTPGU"[VSFΛαϙʔτ • 7JSUVBM.BDIJOF 42-%BUBCBTF  3FEJT $BDIF 'VODUJPOTͳͲ

    API ௚ۙ ϦϦʔε
  23. AzureΠϯςάϨʔγϣϯ ௚ۙ ϦϦʔε • "[VSF.POJUPS"1*͔ΒϝτϦοΫΛऔಘ͠Մ ࢹԽ • αʔϏεϓϦϯγύϧΛར༻ͨ͠"1*ΞΫηε ʢݖݶίϯτϩʔϧՄೳʣ API

    Virtual Machine SQL Database Redis Cache Functions Azure Monitor
  24. AzureΠϯςάϨʔγϣϯ ௚ۙ ϦϦʔε SQL Database

  25. WindowsαϙʔτͷڧԽ • 8JOEPXTͰ΋؆୯Πϯετʔϧ • ΠϯετʔϧˍαʔϏεొ࿥ˍىಈ׬ྃʢ.4*औಘޙʣ • ओཁϓϥάΠϯͷΠϯετʔϥʔಉࠝʢ͙͢ʹར༻Մೳʣ • DIFDLMPH DIFDLOUTFSWJDF

    DIFDLQSPDT  DIFDLUDQ DIFDLXJOEPXTFWFOUMPH
  26. WindowsαϙʔτͷڧԽ • νΣοΫϓϥάΠϯͷॆ࣮ • Πϕϯτϩά • ςΩετϩά • αʔϏεϓϩηε

  27. WindowsαϙʔτͷڧԽ • ϝϞாͰ΋ઃఆϑΝΠϧΛฤूʢ$3-'ରԠʣ

  28. 4 Ϗδϣϯ

  29. ࣌୅͸Ϋϥ΢υԽͷྲྀΕ • ։ൃπʔϧ͸Ϋϥ΢υ΁ • TWOHJU ˠ (JU)VC (JU)VC&OUFSQSJTF • +FOLJOTˠ

    5SBWJT$* $JSDMF$* • ࣮ߦ؀ڥ΋Ϋϥ΢υ΁ • ΦϯϓϨ ˠ "84 ($1 "[VSF #MVFNJY
  30. Mackerel΁ͷྲྀΕ • ӡ༻πʔϧ΋Ϋϥ΢υ΁ • ;BCCJY /BHJPT ˠ $MPVEXBUDI /FX3FMJD BOE.BDLFSFM

     • ࢖͍΍͍͢6*ʹΑΔɺΑΓ҆ఆͨ͠ӡ༻Λ
  31. Infrastructure as Code • ϗετઃఆ͕ίʔυԽ͞Εͨʢ$IFGQVQQFUʣ • .BDLFSFMͷઃఆ΋ίʔυͰ؅ཧ • ؂ࢹϧʔϧμογϡϘʔυͷίʔυԽ •

    ॱ࣍ɺ"1*ԽΛਪਐ
  32. Mackerelͷະདྷ • "MMJO0OFαʔϏεͰ͸ͳ͍ • ༷ʑͳπʔϧαʔϏεͱͷ࿈ܞ • 4MBDL (JU)VC 5XJMJP •

    γεςϜ؅ཧͷίΞπʔϧͱͯ͠ͷ.BDLFSFM
  33. DevOpsͷத֩ͱͯ͠ • ϥΠϑαΠΫϧશମͷޮ཰ԽΛଅਐ %FW 0QT

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

  35. ࣍ੈ୅.BDLFSFM

  36. ͍͞͝ʹ

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

  38. mackerel.io