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

書籍『入門 OpenTelemetry』 / Intro of OpenTelemetry book

書籍『入門 OpenTelemetry』 / Intro of OpenTelemetry book

Forkwell Library #85 入門OpenTelemetry―現代的なオブザーバビリティシステムの構築と運用
https://forkwell.connpass.com/event/345986/

ymotongpoo

March 10, 2025
Tweet

More Decks by ymotongpoo

Other Decks in Technology

Transcript

  1. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 1 © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved. 書籍『⼊⾨OpenTelemetry』 ⼭⼝ 能迪 (@ymotongpoo) F O R K W E L L L I B R A R Y # 8 5 アマゾンウェブサービスジャパン合同会社 シニアデベロッパーアドボケイト
  2. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 2 © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved. ⾃⼰紹介 ⼭⼝ 能迪(やまぐち よしふみ) アマゾンウェブサービスジャパン合同会社 シニアデベロッパーアドボケイト 専⾨領域 • オブザーバビリティ • SRE全般 @ymotongpoo
  3. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 3 • OpenTelemetryというプロジェクトを理解する • 『⼊⾨ OpenTelemetry』という書籍の概要を理解する 今⽇のゴール
  4. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 4 1. オブザーバビリティが注⽬されている背景 2. OpenTelemetry プロジェクトとは 3. 『⼊⾨ OpenTelemetry』について アジェンダ
  5. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 5 © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved. オブザーバビリティが 注⽬されている背景
  6. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 6 「オブザーバビリティ(可観測性)」とは Controller System Sensor Reference Measured error System input System output Measured output システムがその出⼒から内部状態を推測できる状態 =システム運⽤の判断に必要なデータが取得できる状態 c.f. モニタリング
  7. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 7 システムの変化
  8. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 8 どう変化してきたのか ハードウェアが貴重だった時代 • インフラの可⽤性を守るためのテレメトリー • 特定のインフラから特定のテレメトリー • 特定のインスタンスから特定のテレメトリー • トランザクションの経路は限定的 • ログ、メトリクス
  9. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 9 どう変化してきたのか クラウドネイティブな時代 • 信頼性全般のためのテレメトリー • 不特定のインフラから様々なテレメトリー • 不特定のインスタンスから様々なテレメトリー • トランザクション経路が多様 • ログ、メトリクス、分散トレース、プロファイル
  10. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 10 結局どう変化してきたのか クラウドネイティブな時代 • 信頼性全般のためのテレメトリー • 不特定のインフラから様々なテレメトリー • 不特定のインスタンスから様々なテレメトリー • トランザクション経路が多様 • ログ、メトリクス、分散トレース、プロファイル • 障害は常に起きている 運⽤の判断に必要な情報が取得できる状態 || アプリケーションからシステムレベルまでの あらゆる箇所の様々なテレメトリーが必要
  11. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 11 責任共有モデル オブザーバビリティにおいても同様 お客様 クラウド内の オブザーバビリティ に対する責任 AWS クラウドの オブザーバビリティ に対する責任
  12. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 12 責任共有モデル オブザーバビリティにおいても同様 お客様 クラウド内の オブザーバビリティ に対する責任 AWS クラウドの オブザーバビリティ に対する責任 ⾃分でテレメトリー を取る必要がある
  13. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 13 AWS オブザーバビリティ成熟度モデル 能⼒ 成熟度 ステージ1 基礎的なモニタリング ステージ2 中級のモニタリング ステージ3 応⽤的な オブザーバビリティ ステージ4 プロアクティブな オブザーバビリティ 計 装 、 テ レ メ ト リ ー の 分 析 と 洞 察 ロ グ と メ ト リ ク ス の 収 集 訂 正 、 ア ノ マ リ ー 検 出 、 S L O ⾃ 動 的 で プ ロ ア ク テ ィ ブ な 根 本 原 因 特 定 https://aws-observability.github.io/observability-best-practices/guides/observability-maturity-model/
  14. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 14 AWS オブザーバビリティ成熟度モデル 能⼒ 成熟度 ステージ1 基礎的なモニタリング ステージ2 中級のモニタリング ステージ3 応⽤的な オブザーバビリティ ステージ4 プロアクティブな オブザーバビリティ 計 装 、 テ レ メ ト リ ー の 分 析 と 洞 察 ロ グ と メ ト リ ク ス の 収 集 訂 正 、 ア ノ マ リ ー 検 出 、 S L O ⾃ 動 的 で プ ロ ア ク テ ィ ブ な 根 本 原 因 特 定
  15. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 15 ステージ1と2には何が必要か 計装、収集、送信、保存、可視化の5段階 コンポーネント ⼊⼒ 出⼒ 計装 (インスツルメンテーション) 送信 保存 収集 可視化
  16. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 16 © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved. OpenTelemetry プロジェクトとは
  17. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 17 OpenTelemetry project official document OpenTelemetry, also known as OTel, is a vendor-neutral open source Observability framework for instrumenting, generating, collecting, and exporting telemetry data such as traces, metrics, and logs.
  18. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 18 OpenTelemetry project official document OTelとしても知られる OpenTelemetry は、トレース、 メトリクス、ログなどのテレメトリーデータを計装、 ⽣成、収集、送信を⾏うためのベンダー中⽴のオープ ンソースのオブザーバビリティフレームワークです。
  19. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 19 OpenTelemetry のスコープ 計装、⽣成、送信 コンポーネント ⼊⼒ 出⼒ 計装 (インスツルメンテーション) 送信 保存 収集 可視化
  20. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 20 OpenTelemetry のスコープ コンポーネント ⼊⼒ 出⼒ API & SDK • OTLP • OTel Arrow Collector
  21. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 21 対応テレメトリー • ログ • メトリクス • 分散トレース • プロファイル 『入門 OpenTelemetry』 1章 図1−3
  22. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 22 OpenTelemetry を使うメリット • 主要OSSと主要ベンダーが標準として採⽤ • データフォーマット • セマンティック規約 • コレクター(エージェント) • データの相関 • コンポーネントの疎結合姓 • Fan-in Fan-out
  23. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 23 標準: データフォーマット OTLPをサポートするOSSやオブザーバビリティSaaS が増加 OSS • Jaeger • Prometheus • Elasticsearch • OpenSearch • Grafana SaaS • AWS • Honeycomb.io • Splunk • Elastic • Dynatrace • New Relic etc… https://opentelemetry.io/ecosystem/vendors/
  24. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 24 標準: セマンティック規約 複数のサービスでラベルの規約を揃える データベース • db.system.name • db.collection.name • db.namespace • db.operation.name • server.address Kubernetes • k8s.cluster.name • k8s.cluster.uid • k8s.container.name • k8s.deployment.name • k8s.deployment.uid • k8s.node.name • k8s.node.uid
  25. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 25 標準: コレクター(エージェント) テレメトリーの収集と送信をするエージェントを使う 例: AWS Ditro for OpenTelemetry (ADOT)
  26. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 26 データの相関 オブザーバビリティの⽬的 問題を推測を少なく発⾒する 『入門 OpenTelemetry』 2章 図2−4 メトリクス→トレース→プロファイルの例
  27. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 27 コンポーネントの疎結合性/Fan-in Fan-out コンポーネントが独⽴ • Receiver • Processor • Exporter • Connector
  28. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 28 © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved. 『⼊⾨ OpenTelemetry』
  29. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 29 『⼊⾨ OpenTelemetry』 原著名 『Learning OpenTelemetry』 原著発売⽇ 2024年3⽉ 原著者 Ted Young, Austin Parker 発売⽇ 2025年1⽉23⽇ A5版 212ページ 2,750円 ISBN 978-4814401024
  30. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 30 原著者陣 Ted Young Austin Parker OpenTelemetry の共同設⽴者のうちの2⼈
  31. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 31 『⼊⾨ OpenTelemetry』はどんな書籍か OpenTelemetry の思想や概念を理解させてくれる書籍 書かれていること • オブザーバビリティの歴史 • OpenTelemetry を使うべき理由 • OpenTelemetry 概要 • 各種アーキテクチャ • 各種計装⽅法の概念説明 • オブザーバビリティの今後 • オブザーバビリティチェックリスト 書かれていないこと • 特定の⾔語での計装⽤サンプルコード • コレクターパイプラインの設定の詳細 • 現在利⽤できるコンポーネントの⼀覧
  32. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 32 なんでコードを載せないの︖
  33. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 33 プロジェクトの背景や思想を学ぶことに重点 ⻑らく変化しない重要な情報に重きを置いている 背景・思想が理解できれば、製品⽐較のときにも広い視野が持てる 次のような情報は︖ • ライブラリを⽤いた計装の⽅法 • コレクターの設定⽅法 • 重要なプラグインの検索
  34. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 34 公式ドキュメントが充実&最新 https://opentelemetry.io/
  35. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 35 サンプルコードも最新に
  36. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 36 ⽇本語化プロジェクト 絶賛参加者募集中
  37. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 37 アンケートに答えてください
  38. © 2025, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. 38 Thank you! © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.