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

Datadog Agent on CloudRunによるGCPトレーサビリティの向上

Datadog Agent on CloudRunによるGCPトレーサビリティの向上

More Decks by 株式会社ビットキー / Bitkey Inc.

Other Decks in Technology

Transcript

  1. Datadog Agent on CloudRunʹΑΔGCPτϨʔαϏϦςΟͷ޲্ גࣜձࣾϏοτΩʔࠤʑ໦ྃ

  2. 0VUMJOF 1. Bitkeyʹ͓͚ΔαʔϏεͷΞʔΩςΫνϟ΍ ෼ࢄτϨʔεʹ͍ͭͯ 2. GCP CloudTraceͷ໰୊఺ 3. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊ

    ʹؤுͬͨ࿩ 4. ݒ೦఺ͱࠓޙͷ࿩ 
  3. ࠤʑ໦ྃ 3ZP4BTBLJ   ๭௨৴ܥ4*FSೖࣾ ɾݩʑ͸/8ΤϯδχΞͩͬͨͷͰ#(1࢖ͬͨଞڌ఺/8࡞ͬͨΓͱ͔ ɾ࣏ࣗମͱ͔׭ެிܥγεςϜʹܞΘͬͨΓ͢Δ͜ͱ͕ଟ͔͔ͬͨͳ ɾڮྊ఺ݕϩϘοτ։ൃ΍ͬͨΓͱ͔ ϑϦʔϥϯεʹస޲ ɾϖωτϨʔγϣϯςετ΍ͬͨΓͱ͔

    ɾ0QFO4UBULͱ0QFO4IJGU݁ߏ΍ͬͯͨΓͱ͔ ɾϋΠϒϦουΫϥ΢υ࡞ͬͨΓͱ͔  ϏοτΩʔʹ43&ͱͯ͠δϣΠϯ ˞ͿͬͪΌ͚͋·Γ43&΍ͬͯͳ͍͚ͲͶ ެͷ৔Ͱਓʹઆ໌Ͱ͖ΔΑ͏ͳً͔͍͠ܦྺ͸࣋ͬͯͳ͍ͷͰ αΫοͱྲྀ͠·͢ʂʂʂ
  4.  λΠτϧͰωλόϨͯ͠Δ͚Ͳ Datadog AgentΛCloudRunͰಈ͔ͯ͠ɺ CloudFunctionsͳͲͷFaaS͔ΒAPMΛར༻Ͱ͖ΔΑ͏ʹͨ͠ Α͍ͬͯ͏࿩Ͱ͢
 (ਖ਼֬ʹ͸Trace)

  5. Bitkeyʹ͓͚Δ αʔϏεΞʔΩςΫνϟ 

  6. Bitkeyʹ͓͚ΔαʔϏεΞʔΩςΫνϟ - جຊతʹ($1Λར༻ͨ͠αʔόʔϨεΞʔΩςΫνϟ - CloudFunctions (AWSͰ͍͏ͱ͜ΖͷLambda) - CloudRun (AWSͰ͍͏ͱ͜ΖͷAppRunner͕͍ۙ) -

    *P5੡඼͕͍͔ͭ͘ଘࡏ͢Δ͕ɺͦΕΒ͸AWS IoTʹΑͬͯߏ੒ - Ճ͑ͯͦΕΒΛॲཧ͢ΔͨΊʹLambda API GatewayΛར༻  GCP x AWS ͳ ΞʔΩςΫνϟ
  7. Bitkeyʹ͓͚ΔαʔϏεΞʔΩςΫνϟ  ͕͜͜શͯGCPͷ CloudFunctions or CloudRun

  8. Bitkeyʹ͓͚Δ ݱঢ়ͷ෼ࢄτϨʔεར༻ʹ͍ͭͯ 

  9. Bitkeyʹ͓͚Δݱঢ়ͷ෼ࢄτϨʔεར༻ʹ͍ͭͯ - 1000͍ۙFaaS͕ଘࡏ͢ΔͨΊɺͲ͕͜Ͳ͏ܨ͕͍ͬͯͯɺԿ͕Ͳ͏ॲ ཧ͕ਐΜ͔͕ͩΘ͔Βͳ͍ - υΩϡϝϯτ΋·ͱ΋ʹͳ͘࢓༷ઃܭͷ೺Ѳ͕ࠔ೉ - τϥϒϧγϡʔτ΍Կ͔ϦϑΝΫλ͢Δͷʹͱͯͭ΋ͳ͍޻਺͕ൃੜ  x

    1000ऑ x 100ऑ
  10. Bitkeyʹ͓͚Δݱঢ়ͷ෼ࢄτϨʔεར༻ʹ͍ͭͯ - 1000͍ۙFaaS͕ଘࡏ͢ΔͨΊɺͲ͕͜Ͳ͏ܨ͕͍ͬͯͯɺԿ͕Ͳ͏ॲ ཧ͕ਐΜ͔͕ͩΘ͔Βͳ͍ - υΩϡϝϯτ΋·ͱ΋ʹͳ͘࢓༷ઃܭͷ೺Ѳ͕ࠔ೉ - τϥϒϧγϡʔτ΍Կ͔ϦϑΝΫλ͢Δͷʹͱͯͭ΋ͳ͍޻਺͕ൃੜ  x

    1000ऑ x 100ऑ Ͳ͏ʹ͔Ͱ͖ͳ͍͔ɾɾɾʁ
 ͤΊͯτϥϒϧγϡʔςΟϯάΛԿͱ͔ɾɾɾʂ
  11. Bitkeyʹ͓͚Δݱঢ়ͷ෼ࢄτϨʔεར༻ʹ͍ͭͯ  OpenTelemetry ʹΑΔ෼ࢄτϨʔεΛ΍Ζ͏ʂ
 ※͕࣌ؒͳ͍ͷͰ෼ࢄτϨʔεͬͯԿ΍ͶΜͷ࿩͸ল͖·͢

  12. Bitkeyʹ͓͚Δݱঢ়ͷ෼ࢄτϨʔεར༻ʹ͍ͭͯ - ͪͳΈʹ͜ͷ࣌఺Ͱ"84ଆ͸93BZΛ࢖ͬͯαΫοͱτϨʔεΛ࣮૷ - %BUBEPHͰ͸ެࣜΨΠυʹैͬͯઃఆ͢Ε͹ɺ௒؆୯ʹ93BZͷτϨʔε σʔλΛ%BUBEPH"1.ʹू໿Մೳ - ಛʹϋϚΔ෦෼΋ͳ͘ඇৗʹ؆୯ - SFGIUUQTEPDTEBUBEPHIRDPNKBJOUFHSBUJPOTBNB[[email protected]

     QVMM -BNCEB 'VODUJPO T 93BZ
  13. Bitkeyʹ͓͚Δݱঢ়ͷ෼ࢄτϨʔεར༻ʹ͍ͭͯ - ͳͥOpenTelemetry - ($1ͷϑϧϚωʔδυͷ෼ࢄτϨʔεՄࢹԽαʔϏε CloudTrace ͕ OpenTelemetryΛαϙʔτ͍͔ͯͨ͠Β - 044ͳͷͰɺԿ͔͠ΒͷϩοΫΠϯ΋ൃੜ͠ͳ͍͠ɺ*OTUSVNFOUBUJPOͷ։

    ൃ΋׆ൃʹਐΜͰ͍ΔͷͰকདྷతʹ҆ఆͯ͠࢖͍͚ͬͯΔͩΖ͏ͱ͍͏൑அ 
  14. Bitkeyʹ͓͚Δݱঢ়ͷ෼ࢄτϨʔεར༻ʹ͍ͭͯ - ͳͥDatadog APMͷTraceػೳͰ͸μϝͩͬͨͷʁ - ࠷ॳʹߟ͑ͨͷ͸౰વDatadog APMͩͬͨ - "1.ར༻ͷͨΊʹ͸ Datadog

    Agent ͕ඞཁ - LT΍"84'BSHBUFͰ͸ެࣜαϙʔτ͞Ε͍ͯΔ͕ɺ 
 #JULFZͷϝΠϯͰ͋Δ($1$MPVE'VODUJPOTͰ͸αϙʔτ͞Ε͍ͯͳ͍  ͦΕ΋ͦͷ͸ͣͰAgent͸αΠυΧʔతʹಈ͘ ※k8sͷ৔߹ͪΐͬͱޠฐͷ͋Δݴ͍ํ͚ͩͲ
  15. Bitkeyʹ͓͚Δݱঢ়ͷ෼ࢄτϨʔεར༻ʹ͍ͭͯ - -BNCEBͰ͋Ε͹Extension΍Datadog ForwarderͳͲΛ࢖ͬͯ؆୯ʹτϨʔε΍ ϩάσʔλΛऩूͰ͖Δ - 93BZͰྑ͍ͳΒ͞Βʹ؆୯ʹ࿈ܞͰ͖Δ - EEUSBDFWT93BZ͸ҎԼΛࢀর -

    IUUQTEPDTEBUBEPHIRDPNKBTFSWFSMFTT[email protected] - 'BSHBUFͷ৔߹ɺͦ΋ͦ΋1PEతʹෳ਺ίϯςφΛ·ͱΊͯىಈͰ͖ΔͨΊ 
 "HFOUΛαΠυΧʔͱͯ͠ىಈͰ͖Δ  GCF ΍ CloudRun Ͱ͸͜Ε͕Ͱ͖ͳ͍
  16. Bitkeyʹ͓͚Δݱঢ়ͷ෼ࢄτϨʔεར༻ʹ͍ͭͯ  ͱ͍͏Θ͚ͰɺAPM͸ར༻ͤͣɺOpenTelemetryʹཔͬͨ ՄࢹԽ΋GCP CloudTraceͰग़དྷΔ͔ΒָͪΜʂ ͜ΕͰ׬ᘳ΍ʂʂ

  17. Bitkeyʹ͓͚Δݱঢ়ͷ෼ࢄτϨʔεར༻ʹ͍ͭͯ  ͦ͏͸໰԰͕Է͞ͳ͍

  18. GCP CloudTraceͷ໰୊఺ͱ APMͷར༻ݕ౼ 

  19. GCP CloudTraceͷ໰୊఺ͱAPMͷར༻ݕ౼  ໰୊఺: CloudTraceͷػೳ͕ශऑ͗͢Δ

  20. GCP CloudTraceͷ໰୊఺ͱAPMͷར༻ݕ౼ - ϑΟϧλϦϯά͕݁ߏ͖͍ͭ - ໨తͷϦΫΤετΛ୳͢ͷ͕͠ΜͲ͗͢Δ - ຖඵ਺ඦʙ਺ઍ͍ͬͯ͏τϨʔε͕ه࿥͞Ε͍ͯ͘ͷʹɺ 
 ͔ͦ͜ΒखಈͰ୳͢ͷ͸ྲྀੴʹۤ௧͗͢Δ

    
  21. Datadog AgentΛGCPͰ ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩ 

  22. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩  ΍ͬͺΓDatadog APM࢖͍͍ͨͳ͊ɻ AWSଆ΋ͦ͏ͩ͠RUMΛ࢖ͬͨ
 ϑϩϯτ͔ΒͷτϨʔγϯά΋؆୯ʹͰ͖Δ͠ͳ͊ɻ ͔͠΋͋ͬͪͷํ͕UI/UX͕༏ΕͯΔ΋Μͳ͊ɻ

  23. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩  ͱ͍͏Θ͚ͰGCPͷCloudFunctions΍CloudRunʹͯAPM TraceΛར༻Ͱ͖ΔΑ͏ʹݕ౼ͯ͠ΈΔɻ

  24. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩  ՝୊ ɾͲ͏΍ͬͯDatadog AgentΛGCPͰ࣮૷͢Δ͔ʁ ɾ೗ԿʹϝϯςφϯείετΛԼ͛ͨߏ੒ʹͰ͖Δ͔ʁ ɾεέʔϥϏϦςΟΛ্͛ΒΕΔ͔ʁ

  25. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩  ͱʹָ͔͘ʹ؅ཧ͍ͨ͠ɻ ͋ʔͩͷ͜ʔͩͷ΍Γͨ͘ͳ͍ɻ ͔ͩΒͱݴͬͯࢭ·ͬͯཉ͘͠ͳ͍ɻ҆ఆՔಇͯ͠΄͍͠ɻ

  26. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩ - $PNQVUF&OHJOF "84Ͱ͍͏&$ Ͱ-JOVYΠϯελϯεͰ΋ཱͯ ͯɺͦ͜Ͱಈ͔ͤ͹ʁʁ  ྩ࿨4೥ͷࠓɺੵۃతʹͦͷํ๏Λ࠾༻ͨ͘͠͸ͳ͍ɻ

  27. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩ - "84'BSHBUFͰαϙʔτ͞Ε͍ͯΔͳΒɺͦͬͪͰσϓϩΠͯ͠($1 ଆ͔Β౤͛ͯ͋͛Ε͹ྑ͍ͷͰ͸ʁ  Ͱ͖ͳ͘͸ͳ͍ͩΖ͏͚Ͳɺ͏ʔΜɻɻɻ
 ͋·Γ៉ྷ͡Όͳ͍ΑͶɻ ͜Μͳ͜ͱͷͨΊʹάϩʔόϧԣஅͯ͠௨৴ͤͨ͘͞ͳ͍ɻ ؾʹ͢Δ΄Ͳͷ͜ͱͰ͸ͳ͍ͱ͸͍͑ϨΠςϯγͷ໰୊΋͋Δɻ

  28. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩ - "1.͸LTͰ͸ਖ਼ࣜαϙʔτ͞Ε͍ͯΔΜ͔ͩΒɺ(,&༻ҙͯ͠ "HFOUΛஔ͍ͯ͋͛ͨΒʁ  ྲྀੴʹ͜ͷͨΊ͚ͩʹk8s༻ҙ͢Δͷ͸ίεύѱ͍ؾ͕ɻ
 
 طʹGKEΛར༻͠·͍ͬͯͯ͘ɺଟ͘ͷΤϯδχΞ͕ѻ͑Δঢ়گͳΒྑ͍Μ͚ͩͲɺɺɺ
 લड़ͷ௨Γେ൒ͷϓϩμΫτ͸FaaSͰಈ͍͍ͯΔؔ܎Ͱօk8sΛ࢖͍׳Ε͍ͯͳ͍ɻ

  29. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩  ͦΜͳ࣌ࢥ͍͍ͭͨɻ ͔ͯɺDatadog AgentͬͯDockerαϙʔτ͞Ε͍ͯΔΑͶʁʁ ͦΓΌͦ͏ͩɻͦ΋ͦ΋k8sͱ͔FargateͰαϙʔτ͞ΕͯΔΜͩ͠ɻ ͦΕ࢖ͬͯCloudRunͰಈ͔ͤ͹ྑ͘Ͷʁʁ ˞#JULFZͰ͸$MPVE3VO͸ׂͱར༻͞Ε͍ͯͯࣾ಺Ͱͷϊ΢ϋ΢͕͋Δ

  30. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩  IUUQTEPDTEBUBEPHIRDPNKBJOUFHSBUJPOT[email protected] UBCXFCV ΍ͬͺΓͶ IUUQTEPDTEBUBEPHIRDPNKBDPOUBJOFSTEPDLFS

  31. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩  IUUQTIVCEPDLFSDPNSEBUBEPHBHFOU ͦΓΌ͋Ͷ

  32. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩  ՝୊ ɾͲ͏΍ͬͯDatadog AgentΛGCPͰ࣮૷͢Δ͔ʁ ɾ೗ԿʹϝϯςφϯείετΛԼ͛ͨߏ੒ʹͰ͖Δ͔ʁ ɾεέʔϥϏϦςΟΛ্͛ΒΕΔ͔ʁ શͯCloudRunͰղܾͰ͖Δʂʂʂ

  33. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩   ౜ಥ͚ͩͲ  Ͱ͖ͨ :tada:

  34. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩ FYQPSUFSͷ౤͛ઌΛม͑Δ͚ͩʂʂʂʂ  gcloud beta run deploy dd-agent \

    --image gcr.io/datadoghq/agent \ --port 8126 \ --memory 1024Mi \ --region asia-northeast1 \ --allow-unauthenticated \ --set-env-vars "DD_HOSTNAME=common-dd-agent" \ --set-env-vars "DD_APM_ENABLED=true" \ --set-env-vars "DD_APM_NON_LOCAL_TRAFFIC=true" \ --set-secrets "DD_API_KEY=DD_API_KEY:latest" \ --execution-environment gen2 ͓΋ΉΖʹgcloudίϚϯυΛࡌ͓ͤͯ͘ɻ͜ΕͰऴΘΓɻ
  35. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩ Datadog Agent on CloudRunͷྑ͞ - ϑϧϚωʔδυͳͷͰΊͪΌͪ͘Όӡ༻ίετ͕௿͍ - ෇ਵϦιʔε

    71$΍-# ͷઃܭ΍؅ཧ͕ෆཁ - ެࣜʹఏڙ͞Ε͍ͯΔίϯςφΠϝʔδΛ࢖ͬͯɺ͋ͱ͸؀ڥม਺ͱͯ͠ 
 ίϯϑΟάΛ༩͑ͯ͋͛Ε͹ͦΕͰऴΘΓ  $MPVE'VODUJPOT %BUBEPH"HFOUPO$MPVE3VO EEUSBDF1VTI $POUBJOFS 3FHJTUSZ
  36. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩ Datadog Agent on CloudRunͷྑ͞ - Կ΋ߟ͑ͣͱ΋উखʹΦʔτεέʔϧͯ͘͠ΕΔͷͰ 
 ࠓޙͷεέʔϥϏϦςΟʹ΋ඇৗʹ༏ΕΔ

    - #JULFZ࣮੷ͩͱɺΠϯελϯε਺d͙Β͍Ͱ೔ʑεέʔϧ͍ͯ͠Δ - Ͳ͏ͤ($1ͷ%$಺෦ͰΠϯλʔίωΫτͳ௨৴͕ߦΘΕΔͷͰ 
 ($'͔ΒݟͯϨΠςϯγ͕ݱ࣮తʹ໰୊ʹͳΔ͜ͱ͸ͳ͍͸ͣ ໝ૝ 
  37. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩ • ࢀߟఔ౓ʹ%BUBEPH"HFOUͰ࢖͏؀ڥม਺ͱ͔ ◦ IUUQTEPDTEBUBEPHIRDPNKBDPOUBJOFSTEPDLFS UBC&"&#"FOWJSPONFOUWBSJBCMFT ◦ IUUQTEPDTEBUBEPHIRDPNKBDPOUBJOFSTEPDLFSBQN UBCMJOVY

    • ͜ͷลΛΑ͘࢖͏͸ͣ  Key Value ิ଍ DD_APM_ENV your_environment datadog্Ͱೝࣝ͞ΕΔenvͷσϑΥϧτઃఆɻ ΫϥΠΞϯτίʔυଆͰ্ॻ͖Ͱ͖Δɻ DD_HOSTNAME your_ddagent_name ࢦఆͨ͠ϗετ໊Ͱdatadogʹه࿥͞ΕΔͷͰͪΌΜ ͱߟ͑ͯʂ DD_APM_ENABLED true APMͷ༗ޮԽઃఆ DD_OTLP_CONFIG_RECEIVER_PROT OCOLS_HTTP_ENDPOINT 0.0.0.0:4318 ޙड़͢ΔOpenTelemetyͷαϙʔτͷͨΊʹඞਢ DD_APM_NON_LOCAL_TRAFFIC true ֎෦τϥϑΟοΫΛड͚෇͚Δઃఆɻ ࠓճͷΑ͏ͳέʔεͷ৔߹trueඞਢ DD_API_KEY Secret:DD_API_KEY:latest ݴΘͣ΋͕ͳɻฏจͰஔ͔ͳ͍Α͏ʹ͠·͠ΐ͏ɻ
  38. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩  ͞ΒʹݱࡏͷDatadog Agent͸OTLPίϨΫλʔΛαϙʔτ͍ͯ͠Δʂ DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT Λఆٛͯ͋͛͠Ε͹OK 0QFO5FMFNFUSZͷऔΓࠐΈ͕Ͱ͖ΔʂEEUSBDFʹґଘ͢Δඞཁ͕ͳ͍ʂʂ طଘ࣮૷ͷ0QFO5FMFNFUSZͷ෦෼Λม͑ͣɺ&YQPSUFSͷ࣮૷Λ%BUBEPH"HFOUʹ޲͚ͯ͋͛Ε͹ऴΘΓ ޙड़

    $MPVE'VODUJPOT %BUBEPH"HFOUPO$MPVE3VO 0QFO5FMFNFUSZ1VTI 05-1ίϨΫλʔ
  39. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩ ஫ҙ఺ - $MPVE3VO͸'BSHBUFͱҧͬͯ௚઀తʹ%PLDFS)VC͔Β1VMMͯ͜͠Εͳ͍ - ͨͩ͠(PPHMF$POUBJOFS3FHJTUZʹίϯςφΠϝʔδ͕ 
 طʹύϒϦογϡ͞Ε͍ͯΔͷͰɺͦΕΛͦͷ··࢖͑͹0, -

    gcr.io/datadoghq/agent 
  40. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩ ஫ҙ఺ - $MPVE3VOͷGen2 Λ࢖͓͏ - (FO͸-JOVYͷΤϛϡϨʔγϣϯͰ͋Δ͜ͱ΋͋ͬͯΊͪΌͪ͘ΌΤϥʔग़Δ - Gen2͸Linuxͦͷ΋ͷͳͷͰશ͘໰୊ͳ͠

    - ͨͩͦ͠ΕͰ΋%BUBEPH"HFOU͕ఏڙ͢Δ֤छػೳ͕ 
 ͪΐͪ͜ΐ͜Τϥʔग़͢λΠϛϯά͕͋ΔͷͰແବͳػೳ͸ఀࢭͪ͠Όͬͨํ͕ྑ͍ - QSPDFTTͱ͔TZTQSPCFͱ͔ 
  41. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩  Infrastructure as Code ΋ָউ • طʹCloudRunΛߏ੒͢ΔͨΊͷterraformίʔυ͸ࣾ಺Ͱطʹཱ֬ ◦

    ͜ͷߏ੒΋αΫοͱίʔυԽ׬ྃʂ • $MPVE3VOͳͷͰ༨ܭͳ͜ͱΛߟ͑Δ͜ͱ΋গͳ͘ΊͪΌͪ͘ΌָͪΜӡ༻ʂ • উखʹεέʔϧͯ͘͠ΕΔͷͰ࠾༻ϓϩμΫτ͕૿͖͔͑ͯͨΒෛՙ͕ɾɾɾͱ͔ ߟ͑ͳͯ͘0,
  42. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩ ΞϓϦέʔγϣϯίʔυଆͷ࣮૷ - ී௨ʹ%BUBEPH"HFOUPO$MPVE3VO͕ىಈͨ͠Β ͋ͱ͸ͦ͜ʹରͯ͠౤͚͛ͭΔΑ͏ʹ࣮૷͢Ε͹0,  $MPVE'VODUJPOT %BUBEPH"HFOUPO$MPVE3VO QVTI

  43. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩ FYQPSUFSͷ౤͛ઌΛม͑Δ͚ͩʂʂʂʂ  import tracer from 'dd-trace'; export const

    setupTracing = (args: {serviceName?: string; serviceVersion?: string}) => { return tracer.init({ service: args.serviceName ?? 'unknownFunction', version: args.serviceVersion ?? 'unknownVersion', url: 'https://your-dd-agent.run.app', env: 'develop', }); }; ͍ͬ͢͝୯७ɻurl౉ͯ͋͛͠Δ͚ͩɻ؀ڥม਺Ͱ΋Մɻ
  44. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩ 0QFO5FMFNFUSZͰͷ࣮૷͕طʹ͋ΔͳΒɺFYQPSUFSͷ౤͛ઌΛม͑Δ͚ͩʂ  const exporter = new OTLPTraceExporter({url: "https://your-dd-agent.run.app"});

    provider.addSpanProcessor(new SimpleSpanProcessor(exporter));
  45. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩ - $MPVE3VO -PBE#BMBODFSΛ༧Ίߏங͓͚ͯ͠͹ 
 ޷͖ͳ'2%/ͰΞΫηεͰ͖ΔͷͰ͞Βʹྑ͠  $MPVE'VODUJPOT %BUBEPH"HFOUPO$MPVE3VO

    QVTI IUUQT ZPVSDVTUPNEPNBJO -PBE#BMBODFS IUUQT IPHFIPHFBSVOBQQ
  46. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩  ؀ڥ΍αʔϏε୯ҐͰ ͷߜΓࠐΈΊͬͪΌ؆ ୯ʂ ΫΤϦॻ͍ͯര଎ݕࡧʂ APM ͷ UI

    ͍͍ʂ͍͍Αʂʂ
  47. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩  ඥͮ͘ϝλσʔλ΍ϩ ά΋ඥ͍͍ͮͯΔͷͰ ௐࠪ΋͠΍͍͢ʂ ֤τϨʔεΛ։͚͹ɺεύ ϯ͕ΊͬͪΌΘ͔Γ΍͘͢ දࣔ͞ΕΔʂ HTTP΋gRPC΋RDB΁ͷ

    SQL΋શؙͯݟ͑ʂʂ
  48. ݒ೦఺ͱࠓޙͷ࿩ 

  49. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩  ݒ೦఺
 ͜Εͩͱάϩʔόϧʹ࿐ग़͍ͯ͠ΔͷͰ
 ෆಛఆଟ਺͔ΒͷΞΫηε͕͋ΔͷͰ͸ʁ

  50. Datadog AgentΛGCPͰ௿ίετͰ࢖͏ͨΊʹؤுͬͨ࿩ - yes - ͋Δఔ౓ɺ$MPVE"SNPSͰෆਖ਼ͳ௨৴͸๷ޚՄೳ - ͕ɺͦͷΤϯυϙΠϯτʹରͯ͠%BUBEPH"HFOU͕ߏங͞Ε͍ͯΔ͜ͱΛ 
 ஌ΒΕͨ৔߹ʹ͸Ͳ͏͠Α͏΋ͳ͍

    - ݱ࣮తʹຊ൪؀ڥͰ࠾༻͢ΔͷͰ͋Ε͹ɺαʔόʔϨείωΫλʔͰ 
 ($'΍$MPVE3VOͨͪͱΠϯλʔφϧ઀ଓ͠ɺ಺෦తͳΞΫηε͚ͩʹ 
 ݶఆ͓͍ͯͨ͠ํ͕ઈରྑ͍ 
  51. ݒ೦఺ͱࠓޙͷ࿩ - ݱঢ়ͱࠓޙ - ͜ͷ࢓૊ΈΛ࢖ͬͯɺ0QFO5FMFNFUSZ $MPVE5SBDFͷ؀ڥ͔Β 
 Ұ෦ΛҠߦͤͯ͞ςετத - %BUBEPH"1.ͷTraceػೳ͕ඇৗʹ༏लͰ

    
 τϨʔεΛ࢖ͬͨ෼ੳ΍τϥϒϧγϡʔτ͕ඇৗʹ௙Δʂ௙Δʂ 
  52. ݒ೦఺ͱࠓޙͷ࿩ - ݱঢ়ͱࠓޙ - EEUSBDF΋ݱ࣮తʹ࢖͑ΔΑ͏ʹͳͬͨͷͰɺ 
 0QFO5FMFNFUSZWTEEUSBDFͳධՁ΋࣮ࢪத - "84ଆͷ-BNCEBͨͪ΋"1.ʹू໿͍ͤͯ͞ΔͷͰ Ϋϥ΢υԣஅ͔ͭϑϩϯτʙόοΫΤϯυʙIoTͳҰؾ௨؏ͳτϨʔεΛ໨ࢦ͍ͨ͠

    - ͨͩ͠લड़ͷݒ೦఺͕͋ΔͷͰɺ͜ͷ··࢖͍ଓ͚Δ͔͸ෆಁ໌ - ҰํͰ͔ͳΓ"1.ʹྑ͞Λײ͍ͯ͡ΔͷͰνϡʔχϯάͭͭ͠ 
 ౰໘͸ධՁ͠ଓ͚͍ͨ 
  53. ݒ೦఺ͱࠓޙͷ࿩ - ·ͱΊ - %BUBEPH"1.͸6*69͕༏Ε͍ͯͯϚδͰ௙ΔΑ - LT΍"84ʹґଘͨ͠αʔϏε͡Όͳ͍ΜͩΑͳ͊ɾɾɾ 
 "1.࢖͑ͳ͍Μ͔ͳ͍͊ͬͯ͏ਓɺఘΊͳ͍Ͱʂʂ -

    ίϯςφΠϝʔδ͕͋ΔΜ͔ͩΒͲ͏ʹͰ΋ͳΔΑ - $MPVE3VO࢖͑͹ϚδͰ௒ઈָͪΜʹ࣮૷ͱӡ༻͕Ͱ͖ΔΑ - ࠓͷ%BUBEPH"HFOU͸0QFO5FMFNFUSZʹରԠ͍ͯ͠ΔͷͰɺ 
 طଘ࣮૷͔ΒͷϚΠάϨʔγϣϯ͸௿ίετʹ͍͚ΔΑ 
  54. ݒ೦఺ͱࠓޙͷ࿩ - Φν - LT࢖͍׳ΕͯΔͳΒ 
 (,&"VUPQJMPUͰ࣮૷ͨ͠ํ͕ 
 ָͩ҆͠৺Ͱ͖ͦ͏ɻ 


    )FMNͰΠϯετʔϧ΋Ͱ͖Δ͠Ͷɻ - ࢀߟIUUQTEPDTEBUBEPHIRDPNKBDPOUBJOFSTLVCFSOFUFTEJTUSJCVUJPOT UBCIFMNBVUPQJMPU  apiVersion: apps/v1 kind: Deployment metadata: name: dd-agent spec: replicas: 3 selector: matchLabels: app: dd-agent template: metadata: labels: app: dd-agent spec: containers: - name: dd-agent image: datadog/agent:latest ports: - containerPort: 8126 env: - name: DD_API_KEY valueFrom: secretKeyRef: name: dd-api-key key: DD_API_KEY
  55. ͓ΘΓ