Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

!2 ࣗݾ঺հ • দ໦ խ޾ (id:Songmu @songmu) • גࣜձࣾ͸ͯͳ αʔϏεγεςϜ։ൃຊ෦ • νʔϑΤϯδχΞ • MackerelϓϩμΫτϚωʔδϟʔ • ʮΈΜͳͷGoݴޠʯڞஶऀ • ʮMackerelαʔό؂ࢹ࣮ફೖ໳ʯ୅දஶऀ • ʮೖ໳ ؂ࢹʯ෇࿥C ࣥච • https://www.github.com/Songmu • https://www.songmu.jp/riji

Slide 3

Slide 3 text

!3 ۭલͷ؂ࢹϒʔϜ

Slide 4

Slide 4 text

!4 ೖ໳؂ࢹ • ෇࿥C Λॻ͔ͤͯ΋Β͍·ͨ͠ • ͔ͳΓചΕͯΔΈ͍ͨͰ͢ • ʮ։ൃऀ͕ͦ͜؂ࢹΛ͠Α͏ʯ • ʮΨιϦϯ࢒ྔΛܭଌͰ͖ͳ͍೩ྉλϯΫΛ࡞ Βͳ͍ʯ • ͓͢͢ΊͰ͢

Slide 5

Slide 5 text

!5 γεςϜ؂ࢹͷॏཁੑ • ίετηϯλʔͰ͸ͳ͍ • ςετۦಈ։ൃͱಉ͡ • SRE(Site Reliability Engineering)ʹ͓͚ΔΩʔཁૉ • ؂ࢹ͕͋Δ͔ΒγεςϜΛܧଓతʹվળ͠ଓ͚ΒΕΔ

Slide 6

Slide 6 text

!6 .BDLFSFM https://mackerel.io

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

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

Slide 9

Slide 9 text

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

Slide 10

Slide 10 text

!10 ࠷ۙͷͪΐͬͱ͍͍Ξοϓσʔτ • mkr wrapʹΑΔcron/όον؂ࢹ • APIʹΑΔΫϩʔζࡁΈAlertऔಘ • Microsoft Teams௨஌ • AWSΠϯςάϨʔγϣϯڧԽ • ܾࡁ୅ߦγεςϜΛStripeʹ

Slide 11

Slide 11 text

!11 NLSXSBQʹΑΔDSPOόον؂ࢹ • όονδϣϒ͕ެࣜͰ؂ࢹՄೳʹ • https://mackerel.io/ja/docs/entry/ howto/mkr/wrap

Slide 12

Slide 12 text

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

Slide 13

Slide 13 text

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

Slide 14

Slide 14 text

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

Slide 15

Slide 15 text

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

Slide 16

Slide 16 text

!16 ϩʔυϚοϓঢ়گ

Slide 17

Slide 17 text

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

Slide 18

Slide 18 text

!18

Slide 19

Slide 19 text

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

Slide 20

Slide 20 text

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

Slide 21

Slide 21 text

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

Slide 22

Slide 22 text

!22 .BDLFSFM

Slide 23

Slide 23 text

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

Slide 24

Slide 24 text

!24 ϩʔϧ಺ҟৗݕ஌

Slide 25

Slide 25 text

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

Slide 26

Slide 26 text

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

Slide 27

Slide 27 text

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

Slide 28

Slide 28 text

!28 ίϯςφγϑτ

Slide 29

Slide 29 text

!29 NBDLFSFMDPOUBJOFSBHFOU • https://github.com/mackerelio/mackerel-container-agent • ύϒϦοΫϕʔλ൛ • ECS(EC2 or Fargate)/Kubernetesαϙʔτ • Pod/TaskΛϗετͱͯ͠Mackerelʹొ࿥ • ৄ͘͠͸͜ͷ࣍ͷηογϣϯͰ

Slide 30

Slide 30 text

!30 ίϯςφӡ༻ • ΑΓ؆୯ʹΞϓϦέʔγϣϯΛ։ൃ͠ɺͦΕ Λ؆୯ʹຊ൪൓ө͍ͯ͘͠தͰίϯςφ͸Α Γศརʹ׆༻͞Ε͍ͯ͘ • ։ൃɾӡ༻ͷϕετϓϥΫςΟεΛ͍ࣔͨ͠

Slide 31

Slide 31 text

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

Slide 32

Slide 32 text

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

Slide 33

Slide 33 text

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

Slide 34

Slide 34 text

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

Slide 35

Slide 35 text

!35 $PNJOHTPPO

Slide 36

Slide 36 text

!36 ϚΠΫϩϗετ

Slide 37

Slide 37 text

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

Slide 38

Slide 38 text

!38 ͦͷଞ

Slide 39

Slide 39 text

!39 ࡉ͔͍ػೳվળ • ௨஌֦େ • ϓϥάΠϯͷॆ࣮ • ΠϯςάϨʔγϣϯͷڧԽ • طଘػೳͷϒϥογϡΞοϓ ཁ๬ϕʔεͰਵ࣌௥Ճ։ൃ͍͖ͯ͠·͢

Slide 40

Slide 40 text

!40 0OFNPSFMJUUMFUIJOH

Slide 41

Slide 41 text

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

Slide 42

Slide 42 text

!42 .BDLFSFM.77

Slide 43

Slide 43 text

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

Slide 44

Slide 44 text

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

Slide 45

Slide 45 text

!45 • Infrastructure as CodeΛମݱ͢Δ • devopsจԽΛࠜ෇͔ͤΔ • υοάϑʔσΟϯά • ΤϯδχΞΛϫΫϫΫͤ͞Δ • OSSΤίγεςϜͱڞੜ͢Δ όϦϡʔζ

Slide 46

Slide 46 text

!46 Ϣʔβʔͷօ༷ͱڞʹਐԽΛଓ͚͍͖ͯ·͢

Slide 47

Slide 47 text

!47 ஥ؒ΋ઈࢍืूத • ΞϓϦέʔγϣϯΤϯδχΞ • SRE • CRE(Customer Reliability Engineer) • Mackerelηʔϧε https://hatenacorp.jp/recruit/career/

Slide 48

Slide 48 text

!48