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

APMはいいぞ / Awesome Datadog APM

6e910ea53b24d30c3fb5cf6ae0e313f5?s=47 Kaga
December 21, 2020

APMはいいぞ / Awesome Datadog APM

Japan Datadog User Group Meetup#2の資料です。
https://datadog-jp.connpass.com/event/196957/

APM導入のアドベントカレンダーはこちら。

Datadog APMの活用で爆速改善の巻
https://note.com/campfire_dev/n/ne027713b8a61

6e910ea53b24d30c3fb5cf6ae0e313f5?s=128

Kaga

December 21, 2020
Tweet

Transcript

  1. APM͸͍͍ͧ Japan Datadog User Group Meetup #2

  2. ࣗݾ঺հ ɾ͔͕ (@TAKA_0411) ɹSRE at CAMPFIRE ɾDatadog͕޷͖ ɾVTuber͕޷͖ ɾάϥϒϧ͕޷͖ ɾΫϥϑτϏʔϧ͕޷͖

  3. Έͳ͞ΜAPM࢖ͬͯ·͔͢ʁ

  4. Datadog APMͷ׆༻Ͱര଎վળͷר https://note.com/camp f i re_dev/n/ne027713b8a61

  5. APMಋೖ͸طʹϒϩάʹॻ͍ͨͷͰ ࠓ೔͸࣭໰ʹճ౴͠·͢

  6. ҰԠ3ߦͰ·ͱΊΔͱ ɹɹɹɾΞϓϦέʔγϣϯ͔Β΋ ɹɹɹɾύϑΥʔϚϯεվળ ɹɹɹɾΊͬͪΌ΍͍͖ͬͯ

  7. Α͋͘Δ࣭໰

  8. Q. Datadogͷػೳͷ࢖͍෼͚͸ʁ

  9. None
  10. Q. APM͓ͬͯߴ͍ΜͰ͠ΐ͏ʁ

  11. A. EC2ϕʔεͩͱͪΐͬͱߴ͍ Agent : $18/host/month APM : $36/host/month https://www.datadoghq.com/ja/pricing/?product=infrastructure#infrastructure 


    https://www.datadoghq.com/ja/pricing/?product=apm#apm
  12. A’. Taskϕʔεͩͱͪΐͬͱ͍҆? Agent : ??? APM : $2/task/month https://docs.datadoghq.com/ja/account_management/billing/apm_distributed_tracing/

  13. Q. APMͷಋೖ͸؆୯ʁ

  14. Ͷɺ؆୯Ͱ͠ΐ͏ʁ Datadog Agent for ecs-cli compose u p version: '3'

    services: app: environment: DD_AGENT_HOST: 172.17.0.1 DD_TRACE_AGENT_PORT: 8126 DD_APM_ENABLED: “true" datadog: image: datadog/agent:latest ports: - '8126:8126' environment: - DD_API_KEY=${DD_API_KEY} - DD_APM_ENABLED=true - DD_ENV=${ENV_NAME}
  15. Q. ݴޠผͰઃఆ͕͍ΔͷͰ͸… A. ύοέʔδϚωʔδϟΛ ࢖ͬͯԼ͍͞

  16. Ͷɺ؆୯Ͱ͠ΐ͏ʁ Datadog APM for Rail s # /path/to/Gemfil e gem

    'ddtrace ' # /path/to/config/initializers/datadog.r b Datadog.configure do |c | c.tracer.enabled = tru e c.use :rails, service_name: ‘foo-service ' end
  17. Q. APMͱDashboardͲ͏ͯ͠Δʁ

  18. Q. APMͱDashboardͲ͏ͯ͠Δʁ

  19. શવϕετͰ͸ͳ͍…

  20. Q. APMͷখٕͳ͍Ͱ͔͢

  21. Q. APMͷখٕͳ͍Ͱ͔͢ MonitorͷઃఆʹAPMͱ͔LogsͷઃఆΛೖΕͨΒௐ͕ࠪḿΔ {{#is_alert} } αʔϏε : ALB ({{loadbalancer}} )

    ݱ৅ : ALB Target 5xx͕͖͍͠஋Λ௒͑·ͨ͠ ஋ : {{value}} > {{threshold} } APM : https://app.datadoghq.com/apm/traces?query=service%3Afoo- service%20env%3Aproduction%20operation_name%3Arack.request%20status%3Aerro r @slack-foo—notificatio n {{/is_alert}}
  22. ࣭ٙԠ౴λΠϜ