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

DatadogでLaravelジョブワーカーの監視 / monitoring laravel ...

DatadogでLaravelジョブワーカーの監視 / monitoring laravel job workers using datadog

2024年7月18日(木) 第166回PHP勉強会@東京 の発表資料です。

m_norii (のりぃ)

July 18, 2024
Tweet

More Decks by m_norii (のりぃ)

Other Decks in Technology

Transcript

  1. %BUBEPHͰ-BSBWFMδϣϒϫʔΧʔΛ؂ࢹ͢Δ w %BUBEPHͱ͸ w %BUBEPHͰ-BSBWFMΞϓϦέʔγϣϯΛ؂ࢹ͢Δ w 1SP fi MFSΛઃఆͯ͠͞Βʹ%FFQ%JWF͢Δ w

    δϣϒͷ࣮ߦঢ়گΛϩάςʔϒϧʹ࢒͠؂ࢹ͢Δ w δϣϒϫʔΧʔͷϓϩηε୯ҐͰͷ؂ࢹ w DPSFEVNQͷσΟϨΫτϦ؂ࢹ
  2. %BUBEPHͰ-BSBWFMδϣϒϫʔΧʔΛ؂ࢹ͢Δ w %BUBEPHͱ͸ w %BUBEPHͰ-BSBWFMΞϓϦέʔγϣϯΛ؂ࢹ͢Δ w 1SP fi MFSΛઃఆͯ͠͞Βʹ%FFQ%JWF͢Δ w

    δϣϒͷ࣮ߦঢ়گΛϩάςʔϒϧʹ࢒͠؂ࢹ͢Δ w δϣϒϫʔΧʔͷϓϩηε୯ҐͰͷ؂ࢹ w DPSFEVNQͷσΟϨΫτϦ؂ࢹ
  3. %BUBEPHͰ-BSBWFMδϣϒϫʔΧʔΛ؂ࢹ͢Δ w %BUBEPHͱ͸ w %BUBEPHͰ-BSBWFMΞϓϦέʔγϣϯΛ؂ࢹ͢Δ w 1SP fi MFSΛઃఆͯ͠͞Βʹ%FFQ%JWF͢Δ w

    δϣϒͷ࣮ߦঢ়گΛϩάςʔϒϧʹ࢒͠؂ࢹ͢Δ w δϣϒϫʔΧʔͷϓϩηε୯ҐͰͷ؂ࢹ w DPSFEVNQͷσΟϨΫτϦ؂ࢹ
  4. %BUBEPHͰ-BSBWFMΞϓϦέʔγϣϯΛ؂ࢹ͢Δ w ҎલهࣄΛॻ͖·ͨ͠ w ͬ͘͟ΓαϚϦ w %BUBEPH"HFOU 1)1֦ு%%5SBDFೖΕΔ w ؀ڥม਺̎ͭ௥Ճ

    w %%@53"$&@(&/&3"5&@3005@41"/ w %%@53"$&@"650@'-64)@&/"#-&% w τϨʔεͷى఺ͱͳΔϝιουΛ%BUBEPH "1.ʹొ࿥ IUUQT[FOOEFWPQFOMPHJBSUJDMFTECDGDFG
  5. %BUBEPHͰ-BSBWFMδϣϒϫʔΧʔΛ؂ࢹ͢Δ w %BUBEPHͱ͸ w %BUBEPHͰ-BSBWFMΞϓϦέʔγϣϯΛ؂ࢹ͢Δ w 1SP fi MFSΛઃఆͯ͠͞Βʹ%FFQ%JWF͢Δ w

    δϣϒͷ࣮ߦঢ়گΛϩάςʔϒϧʹ࢒͠؂ࢹ͢Δ w δϣϒϫʔΧʔͷϓϩηε୯ҐͰͷ؂ࢹ w DPSFEVNQͷσΟϨΫτϦ؂ࢹ
  6. 1SPGJMFSΛઃఆͯ͠͞Βʹ%FFQ%JWF͢Δ w Πϯετʔϧ w 1)1֦ு%%5SBDFΠϯετʔϧ࣌ʹΦϓγϣϯ Λ౉͢ QIQEBUBEPHTFUVQQIQFOBCMFQSP fi MJOH w

    ࣮ߦ࣌ʹ؀ڥม਺ઃఆ %%@130'*-*/(@&/"#-&%USVF w ˞௨ৗͷ"1.ͱ͸ผͰྉ͕͔͔ۚΓ·͢ IUUQTEPDTEBUBEPHIRDPNKBQSP fi MFSFOBCMJOHQIQ UBCHOVDMJOVY
  7. %BUBEPHͰ-BSBWFMδϣϒϫʔΧʔΛ؂ࢹ͢Δ w %BUBEPHͱ͸ w %BUBEPHͰ-BSBWFMΞϓϦέʔγϣϯΛ؂ࢹ͢Δ w 1SP fi MFSΛઃఆͯ͠͞Βʹ%FFQ%JWF͢Δ w

    δϣϒͷ࣮ߦঢ়گΛϩάςʔϒϧʹ࢒͠؂ࢹ͢Δ w δϣϒϫʔΧʔͷϓϩηε୯ҐͰͷ؂ࢹ w DPSFEVNQͷσΟϨΫτϦ؂ࢹ
  8. δϣϒͷ࣮ߦঢ়گΛϩάςʔϒϧʹ࢒͠؂ࢹ͢Δ w ͜ͷ؍఺Ͱ༗໊ͳͷ͸-BSBWFM)PSJ[FOͱ-BSBWFM 5FMFTDPQF w IUUQTMBSBWFMDPNEPDTYIPSJ[PO w IUUQTMBSBWFMDPNEPDTYUFMFTDPQF w 01&/-0(*Ͱ͸ɺಋೖ౰্࣌هϥΠϒϥϦͰෆ଍͍ͯ͠Δ

    ՕॴΛิ͏ͨΊʹػೳΛࣗ࡞ͨ͠ w ৄ͘͠͸ͪ͜ΒͷهࣄΛࢀরɿ -BSBWFM)PSJ[POͱ-BSBWFM5FMFTDPQFͰͰ͖Δ͜ͱɹΦ ʔϓϯϩδʹ͓͚Δ2VFVFͷӡ༻؅ཧϩάϛʔ5FDI IUUQTMPHNJKQUFDIBSUJDMFT
  9. %BUBEPHͰ-BSBWFMδϣϒϫʔΧʔΛ؂ࢹ͢Δ w %BUBEPHͱ͸ w %BUBEPHͰ-BSBWFMΞϓϦέʔγϣϯΛ؂ࢹ͢Δ w 1SP fi MFSΛઃఆͯ͠͞Βʹ%FFQ%JWF͢Δ w

    δϣϒͷ࣮ߦঢ়گΛϩάςʔϒϧʹ࢒͠؂ࢹ͢Δ w δϣϒϫʔΧʔͷϓϩηε୯ҐͰͷ؂ࢹ w DPSFEVNQͷσΟϨΫτϦ؂ࢹ
  10. %BUBEPHͰ-BSBWFMδϣϒϫʔΧʔΛ؂ࢹ͢Δ w %BUBEPHͱ͸ w %BUBEPHͰ-BSBWFMΞϓϦέʔγϣϯΛ؂ࢹ͢Δ w 1SP fi MFSΛઃఆͯ͠͞Βʹ%FFQ%JWF͢Δ w

    δϣϒͷ࣮ߦঢ়گΛϩάςʔϒϧʹ࢒͠؂ࢹ͢Δ w δϣϒϫʔΧʔͷϓϩηε୯ҐͰͷ؂ࢹ w DPSFEVNQͷσΟϨΫτϦ؂ࢹ