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

ペパボOpenTelemetry革命

 ペパボOpenTelemetry革命

OpenTelemetry Meetup #2でお話しました。

Kazuhiko Yamashita

February 15, 2024
Tweet

More Decks by Kazuhiko Yamashita

Other Decks in Programming

Transcript

  1. Πϯϑϥߏ੒֓ཁ 0QFO4UBDL #BSFNFUBM "84 IFSPLV  (PPHMF$MPVE શαʔϏε߹ܭͰ7.ن໛ ϗεςΟϯάܥͷαʔϏε΍ɺ֤छج൫Ͱར༻ &,4

    3%4 &MBTUJDYYYܥͷϚωʔδυαʔϏεΛத৺ʹར༻ (,& #JH2VFSZΛத৺ʹ"84ͷ%3ɺσʔλΤϯδχΞϦϯάͷج൫ͱͯ͠ར༻
  2. ίϯϙʔωϯτ VM k8s Metrics ̋ ̋ Trace ̋ ̋ Log

    ˚ ˚ OpenTelemetryಋೖঢ়گ ̋ϓϩμΫγϣϯͰಋೖࡁΈ ˚པΉɺ୭͔ԶΛॿ͚ͯ͘Ε
  3. Metrics • hostmetricsͷΈಋೖ • VM͸ͦΕͧΕotel collectorΛ
 Πϯετʔϧ • k8s͸DaemonSetͰ/Λmount receivers:

    hostmetrics: collection_interval: 1m scrapers: cpu: metrics: system.cpu.utilization: enabled: true load: metrics: system.cpu.load_average.1m: enabled: true system.cpu.load_average.5m: enabled: true system.cpu.load_average.15m: ...
  4. mackerel-checks-exporter Mackerelͷagent con fi gΛݩʹɺ
 νΣοΫ؂ࢹ΍ɺϝτϦΫεΛऩूͯ͠ɺ
 :9111/metricsͰެ։ receivers: prometheus: con

    fi g: scrape_con fi gs: - job_name: 'mackerel-checks-exporter' metrics_path: /metrics scrape_interval: 1m static_con fi gs: - targets: - "127.0.0.1:9111"
  5. Trace otelcol k8s DataCenter Tempo pod VM otelcol app ࣗࣾͰ։ൃ͍ͯ͠Δk8s

    engine͕
 ؂ࢹελοΫΛࣗಈΠϯετʔϧ PrometheusAlertManager
 Grafana
 Grafana Tempo
 Grafana Loki

  6. Log