Mackerel 2019
by
mackerelio
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
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 ίϯςφΤʔδΣϯτͷಛ • PodTaskʹԣ͚͢Δ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