Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Mackerel 2019

F09bb6dd6372cfada941e132f6662d7f?s=47 mackerelio
March 01, 2019

Mackerel 2019

F09bb6dd6372cfada941e132f6662d7f?s=128

mackerelio

March 01, 2019
Tweet

Transcript

  1. !1 Mackerel 2019 / Mackerel Meetup #13 2018/03/01 mackerel.io

  2. !2 ࣗݾ঺հ • দ໦ խ޾ (id:Songmu @songmu) • גࣜձࣾ͸ͯͳ αʔϏεγεςϜ։ൃຊ෦

    • νʔϑΤϯδχΞ • MackerelϓϩμΫτϚωʔδϟʔ • ʮΈΜͳͷGoݴޠʯڞஶऀ • ʮMackerelαʔό؂ࢹ࣮ફೖ໳ʯ୅දஶऀ • ʮೖ໳ ؂ࢹʯ෇࿥C ࣥච • https://www.github.com/Songmu • https://www.songmu.jp/riji
  3. !3 ۭલͷ؂ࢹϒʔϜ

  4. !4 ೖ໳؂ࢹ • ෇࿥C Λॻ͔ͤͯ΋Β͍·ͨ͠ • ͔ͳΓചΕͯΔΈ͍ͨͰ͢ • ʮ։ൃऀ͕ͦ͜؂ࢹΛ͠Α͏ʯ •

    ʮΨιϦϯ࢒ྔΛܭଌͰ͖ͳ͍೩ྉλϯΫΛ࡞ Βͳ͍ʯ • ͓͢͢ΊͰ͢
  5. !5 γεςϜ؂ࢹͷॏཁੑ • ίετηϯλʔͰ͸ͳ͍ • ςετۦಈ։ൃͱಉ͡ • SRE(Site Reliability Engineering)ʹ͓͚ΔΩʔཁૉ

    • ؂ࢹ͕͋Δ͔ΒγεςϜΛܧଓతʹվળ͠ଓ͚ΒΕΔ
  6. !6 .BDLFSFM https://mackerel.io

  7. !7 ΞϯόαμʔϓϩάϥϜ͸͡Ί·ͨ͠ https://mackerel.io/ja/blog/entry/ambassador/about

  8. !8 ΞϯόαμʔϓϩάϥϜ • تΜͰ͍͚͍ͨͩͯΔΑ͏Ͱخ͍͠Ͱ͢ • ·ͩ·ͩब೚͍͖͍ͨͩͨਓ͕ͨ͘͞Μ͍·͢

  9. !9 ৗʹਐԽ͠ଓ͚ΔαʔϏε ຖ݄৽ػೳͷϦϦʔεΛܧଓத ௠෗ԽͤͣৗʹਐԽ͍ͯ͠·͢ 54ϲ݄࿈ଓ ܧ ଓ த

  10. !10 ࠷ۙͷͪΐͬͱ͍͍Ξοϓσʔτ • mkr wrapʹΑΔcron/όον؂ࢹ • APIʹΑΔΫϩʔζࡁΈAlertऔಘ • Microsoft Teams௨஌

    • AWSΠϯςάϨʔγϣϯڧԽ • ܾࡁ୅ߦγεςϜΛStripeʹ
  11. !11 NLSXSBQʹΑΔDSPOόον؂ࢹ • όονδϣϒ͕ެࣜͰ؂ࢹՄೳʹ • https://mackerel.io/ja/docs/entry/ howto/mkr/wrap

  12. !12 "1*ʹΑΔΫϩʔζࡁΈ"MFSUऔಘ • ϨϙʔςΟϯά΍ৼΓฦΓͳͲʹ • ྫ͑͹௚ۙ1िؒʹൃੜͨ͠AlertҰཡͷऔಘ౳͕Մೳʹ • mkrίϚϯυ΋ରԠ͍ͯ͠·͢

  13. !13 .JDSPTPGU5FBNT௨஌ • ଟ͘ͷཁ๬Λड͚

  14. !14 "84ΠϯςάϨʔγϣϯڧԽ • ࣮͸࠷ۙ݁ߏ૿΍͍ͯ͠·͢

  15. !15 ܾࡁ୅ߦγεςϜΛ4USJQFʹ • ػೳϦϦʔεͰ͸͋Γ·ͤΜ͕ • ւ֎ల։ຊ֨Խ΋ࢹ໺

  16. !16 ϩʔυϚοϓঢ়گ

  17. !17 ࡢ೥ͷϩʔυϚοϓ • Ξϥʔτάϧʔϓ • ΧελϜμογϡϘʔυϦχϡʔΞϧ • ίϯςφαϙʔτ • ҟৗݕ஌

  18. !18

  19. !19 ΧελϜμογϡϘʔυϦχϡʔΞϧ

  20. !20 ίϯςφαϙʔτ • 2/18 mackerel-container-agentެ։

  21. !21 ҟৗݕ஌ • ຊ೔ϦϦʔε͠·ͨ͠ʂ https://hatenacorp.jp/press/release/entry/2019/03/01/113000

  22. !22 .BDLFSFM

  23. !23 ࠓ೥ͷ.BDLFSFM • ϩʔϧ಺ҟৗݕ஌ • ίϯςφγϑτٴͼϚΠΫϩϗετ • GCPΠϯςάϨʔγϣϯ • SAMLରԠ

    • ࣜ؂ࢹਖ਼ࣜԽ
  24. !24 ϩʔϧ಺ҟৗݕ஌

  25. !25 ਖ਼໊ࣜশʮϩʔϧ಺ҟৗݕ஌ʯ • ϩʔϧͷதͰʮͳʹ͔͓͔ͦ͠͏ʯͳϗετΛݕग़ • mackerel-agent͕ૹ͍ͬͯΔඪ४ͷγεςϜϝτϦοΫΛݩʹࠞ߹Ψ΢εϞσ ϧʹΑΔڭࢣͳֶ͠शΛߦ͍ҟৗ൑ఆ • ؂ࢹઃఆ͔Βର৅ϩʔϧͱsensitivityΛઃఆ͢Δ͚ͩ https://www.slideshare.net/syou6162/mackerel-108429592

  26. !26 ҟৗͷࠜڌఏࣔ΋ ҟৗΛݕ஌͢Δͱ ʮීஈͱ࠷΋ಈ͖ͷҟͳΔϝτϦ οΫͷάϥϑʯ ͱͱ΋ʹΞϥʔτΛൃੜͤ͞·͢

  27. !27 ແྉΩϟϯϖʔϯ࣮ࢪ͠·͢ • ݱঢ়ϕʔλ൛ • 5݄ͷਖ਼ࣜϦϦʔεΛ༧ఆ • ਖ਼ࣜϦϦʔεޙ͸༗ྉΦϓγϣϯͱͯ͠ఏڙ • ϕʔλظؒத͸ແྉͰ͝ར༻͍͚ͨͩ·͢ʂ

    • ϑΟʔυόοΫ͓଴͍ͪͯ͠·͢
  28. !28 ίϯςφγϑτ

  29. !29 NBDLFSFMDPOUBJOFSBHFOU • https://github.com/mackerelio/mackerel-container-agent • ύϒϦοΫϕʔλ൛ • ECS(EC2 or Fargate)/Kubernetesαϙʔτ

    • Pod/TaskΛϗετͱͯ͠Mackerelʹొ࿥ • ৄ͘͠͸͜ͷ࣍ͷηογϣϯͰ
  30. !30 ίϯςφӡ༻ • ΑΓ؆୯ʹΞϓϦέʔγϣϯΛ։ൃ͠ɺͦΕ Λ؆୯ʹຊ൪൓ө͍ͯ͘͠தͰίϯςφ͸Α Γศརʹ׆༻͞Ε͍ͯ͘ • ։ൃɾӡ༻ͷϕετϓϥΫςΟεΛ͍ࣔͨ͠

  31. !31 ίϯςφΤʔδΣϯτͷಛ௃ • Pod΍Taskʹԣ෇͚͢Δsidecarίϯςφ • ίϯςφωΠςΟϒͳ։ൃɾӡ༻Λݟਾ͑ • ϩʔϧొ࿥͢Δ͜ͱͰɺͦͷϚΠΫϩαʔϏ εͷܥͷશମ܏޲͕Ұ໨ྎવ

  32. !32 ϩʔϧάϥϑͷ༷ࢠ • Container CPU usage • ୀ໾PodͷϝτϦοΫ΋࢒ଘ

  33. !33 ίϯςφΤʔδΣϯτͷࠓޙ • ϓϥάΠϯಉࠝΠϝʔδͳͲ • ΑΓObservabilityΛ্͍͚͛ͯΔΑ͏ʹ • αʔϏεϝογϡɾPrometheus࿈ܞ΋ݕ౼ • αʔϏεϝογϡ͸Mackerelͱ΋૬ੑ͕ྑ͍͸ͣ

    • ཁ๬΍ΞΠσΞ͓଴͍ͪͯ͠·͢ʂ
  34. !34 ࣌ܥྻσʔλϕʔεͷ࠶ڧԽߏ૝ ݱঢ়Ͱ΋ίϯςφΤʔδΣϯτͷγεςϜϝτϦοΫ ΋ୀ໾ޙͷϝτϦοΫ͸ϩʔϧάϥϑʹ࢒ଘ͠·͢ • ΧελϚΠζάϥϑٴͼࣜ؂ࢹਖ਼ࣜԽ • ϐʔΫ஋ۉ͠ • ௕ظ܏޲Ͱ΋εύΠΫ͕ՄࢹԽͰ͖ΔΑ͏ʹ

    • ୀ໾ΧελϜϝτϦοΫ௕ظอଘ
  35. !35 $PNJOHTPPO

  36. !36 ϚΠΫϩϗετ

  37. !37 ϚΠΫϩϗετ • ίϯςφΤʔδΣϯτٴͼΠϯςάϨʔγϣϯܥϗ ετΛʮϚΠΫϩϗετʯͱͯ͠ѻ͏ • େ͖͘͸ྉۚମܥͷΞοϓσʔτ • ॳՆϦϦʔε༧ఆ

  38. !38 ͦͷଞ

  39. !39 ࡉ͔͍ػೳվળ • ௨஌֦େ • ϓϥάΠϯͷॆ࣮ • ΠϯςάϨʔγϣϯͷڧԽ • طଘػೳͷϒϥογϡΞοϓ

    ཁ๬ϕʔεͰਵ࣌௥Ճ։ൃ͍͖ͯ͠·͢
  40. !40 0OFNPSFMJUUMFUIJOH

  41. !41 υΩϡϝϯτͷ.BSLEPXOެ։͠·ͨ͠ • https://github.com/mackerelio/documents • pull requestड͚෇͚͍ͯ·͢ • ೔ຊޠͷΈͷมߋՄɾ೔ຊޠՄ

  42. !42 .BDLFSFM.77

  43. !43 Ϋϥ΢υ؂ࢹαʔϏεΛఏڙ͠ɺ ੈͷΤϯδχΞͷ։ൃɾӡ༻ϓϩηεΛֵ৽͢Δ ϛογϣϯ

  44. !44 • DevOpsத֩αʔϏεͷσϑΝΫτͱͯ͠ਐԽ͚ͭͮ͠Δ • αʔϏε؂ࢹɾӡ༻ͷՁ஋ΛߴΊɺ໘ന͘͢Δ • ސ٬ͷαʔϏε੒௕ΛՃ଎ͤ͞Δ Ϗδϣϯ

  45. !45 • Infrastructure as CodeΛମݱ͢Δ • devopsจԽΛࠜ෇͔ͤΔ • υοάϑʔσΟϯά •

    ΤϯδχΞΛϫΫϫΫͤ͞Δ • OSSΤίγεςϜͱڞੜ͢Δ όϦϡʔζ
  46. !46 Ϣʔβʔͷօ༷ͱڞʹਐԽΛଓ͚͍͖ͯ·͢

  47. !47 ஥ؒ΋ઈࢍืूத • ΞϓϦέʔγϣϯΤϯδχΞ • SRE • CRE(Customer Reliability Engineer)

    • Mackerelηʔϧε https://hatenacorp.jp/recruit/career/
  48. !48