Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

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

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

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

Slide 7

Slide 7 text

Α͋͘Δ࣭໰

Slide 8

Slide 8 text

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

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

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

Slide 12

Slide 12 text

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

Slide 13

Slide 13 text

Q. APMͷಋೖ͸؆୯ʁ

Slide 14

Slide 14 text

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

Slide 15

Slide 15 text

Q. ݴޠผͰઃఆ͕͍ΔͷͰ͸… A. ύοέʔδϚωʔδϟΛ ࢖ͬͯԼ͍͞

Slide 16

Slide 16 text

Ͷɺ؆୯Ͱ͠ΐ͏ʁ 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

Slide 17

Slide 17 text

Q. APMͱDashboardͲ͏ͯ͠Δʁ

Slide 18

Slide 18 text

Q. APMͱDashboardͲ͏ͯ͠Δʁ

Slide 19

Slide 19 text

શવϕετͰ͸ͳ͍…

Slide 20

Slide 20 text

Q. APMͷখٕͳ͍Ͱ͔͢

Slide 21

Slide 21 text

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}}

Slide 22

Slide 22 text

࣭ٙԠ౴λΠϜ