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

APMはいいぞ / Awesome Datadog APM

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

Kaga

December 21, 2020
Tweet

More Decks by Kaga

Other Decks in Technology

Transcript

  1. Ͷɺ؆୯Ͱ͠ΐ͏ʁ 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}
  2. Ͷɺ؆୯Ͱ͠ΐ͏ʁ 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
  3. 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}}