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

Amazon CloudWatch Application Signalsの全貌

Mitsuaki Tsugo
September 04, 2024
150

Amazon CloudWatch Application Signalsの全貌

OpsJAWS #30
Amazon CloudWatch Application Signalsの概要を説明しています。

Mitsuaki Tsugo

September 04, 2024
Tweet

Transcript

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

    rights reserved. Amazon Confidential and Trademark. O p s J A W S M e e t u p # 3 0 G A 記 念 A p p l i c a t i o n S i g n a l s を 体 験 し よ う Amazon CloudWatch Application Signals の全貌 津郷 光明 (Mitsuaki Tsugo) Amazon Web Service Japan G.K. Solutions Architect
  2. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. ⾃⼰紹介 津郷 光明 アマゾンウェブサービスジャパン ソリューションアーキテクト 製造業のお客様を担当 好きなもの︓ ⼭ / 建築(観る) / クラフトビール
  3. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Observability helps you サービス状態 ( 正常 / 異常 )の把握 パフォーマンスと 可⽤性の向上 運⽤コストの 削減 顧客体験の 向上 サードパーティシステムのセットアップ、 構成、学習の運⽤負荷を軽減 ウェブサイトのリアルユーザー パフォーマンスを収集・測定 顧客からの通知前に問題を解決 潜在的なバグの発⾒と修正を⾼速化、 機能開発が加速 System Business
  4. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Observability メトリクス ログ トレース 時間間隔で計測されたデータの数値表現 傾向の把握、予測に役⽴つ タイムスタンプが記録された、時間の 経過とともに起こったイベントの記録 予測不可能な振る舞いの発⾒に役⽴つ エンドツーエンドのリクエストフローの記録 リクエストの流れと構造の両⽅を 可視化することで因果関係の追跡 に役⽴つ Observabilityでよく利⽤されるテレメトリデータ
  5. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AWS Observability Services Observability Collectors and SDKs Container insights Lambda insights Contributor insights Application insights Synthetics Dashboards Alarms AWS Services Amazon CloudWatch Open source managed services Amazon Managed Grafana Third-party solutions Metrics CloudWatch agent AWS Distro for OpenTelemetry Internet monitor Logs Amazon OpenSearch Service Amazon Managed Service for Prometheus Fluent Bit RUM AWS X-Ray Amazon CloudWatch Application Signals
  6. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark.
  7. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. オブザーバビリティの活動における課題 • ⼿動での計装は多⼤な時間と労⼒がかかる (コストの問題) • テレメトリデータを収集しても、分析に利⽤するデータの選別や、 分析の観点がわからない (スキルセットの問題)
  8. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark.
  9. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. オブザーバビリティの活動における課題の解決 • ⼿動での計装は多⼤な時間と 労⼒がかかる (コストの問題) • テレメトリデータを収集しても、 分析に利⽤するデータの選別や、 分析の観点がわからない (スキルセットの問題) 課題 • テレメトリデータを“⾃動で”⽣成・収集 • “⾃動で”トポロジーの抽出、可視化 • ⼀般的によく利⽤されるメトリクスを 含む事前作成のダッシュボード提供
  10. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Amazon CloudWatch Application Signals サービスの検出/ トポロジー可視化 ダッシュボード提供 トレース・メトリクスの 確認 CloudWatch Synthetics / CloudWatch RUM との連携 SLOモニタリング テレメトリデータ ⾃動収集 アプリケーションの状態を把握・分析するための情報を⾃動で収集・可視化
  11. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. SLO Dashboard Services Dashboard Service Map Service
  12. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Application Signals B E S T P R A C T I C E S F O R S E R V I C E O P E R A T O R S SLO Dashboard Services Dashboard Service Map Service Insight, Logs Traces Real User Events※ Canaries ※ ※必ず利⽤しなければならないわけではありません
  13. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Application Signals supported systems アーキテクチャ プログラム⾔語 Amazon EKS Amazon ECS Amazon EC2 Java JVM versions 8, 11, 17 Python Python versions 3.8 and later .NET [Preview] .NET version 8 awsvpc ネットワーク モードのみ EC2 / Fargate EC2 / Fargate コンテナ以外の アプリケーションも 実装可能
  14. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. HOW IT WORKS A P P L I C A T I O N S I G N A L S Java Python AWS Distro for OpenTelemetry (ADOT) アプリケーショントポロジーを 発⾒し可視化 健全性を評価するための事前 構築されたダッシュボード SLO(サービスレベル⽬標) 各テレメトリ、Synthetics、 RUMを相関付け CloudWatch Agent CloudWatch AWS X-Ray ADOTで提供される Auto-Instrumentation Agentで コード変更なく アプリケーションメトリクス、 トレースの⽣成から収集を実現 CloudWatch agentを スタンドアロン、 または EKS add-onで 有効化 CloudWatch, X-Rayへの データ転送を担う CloudWatch Application Signals
  15. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. 進化したCloudWatch Agent CloudWatch Agent • OpenTelemetryに対応、 OpenTelemetry Protocol(OTLP)をサポート • X-Ray SDK のデータ転送先として利⽤可能に • 旧来のCloudWatch Agent • X-Ray daemon • OpenTelemetry Collector の役割を担う
  16. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Application Signals 導⼊に向けた基本的な操作 Amazon EKS Amazon ECS Amazon EC2 1. IAMロールの作成 2. CloudWatch Agent設定準備 3. CloudWatch Agent サイドカー定義 4. タスク定義更新 5. 環境変数の設定 6. ボリュームマウント 7. アプリケーションデプロイ 1. CloudWatch Agentダウンロード 2. CloudWatch Agent設定ファイルに、 Application Signals⽤セクション追加 3. IAMロールの設定 4. CloudWatch Agent起動 5. ADOT ⾃動計装エージェントのダウン ロードおよび設定 6. 環境変数の設定 7. アプリケーション起動 1. CloudWatch ObservabilityEKS add-on のインストール 初回のみ最初にApplication Signals を有効化する⼿順は共通 詳細はこちら︓ https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Application-Signals-Enable.html
  17. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. [New!] Amazon Bedrockのメトリクス・トレースをサポート • Amazon Bedrockを利⽤した アプリケーションのSLOや メトリクスを取得可能 • 無効なモデル⼊⼒やLLMモデ ルからの⻑い応答時間など、 エンドユーザーエクスペリエ ンスの低下につながる根本原 因を特定可能 • モデルの障害や、異なるモデ ルのレイテンシがエンドユー ザーエクスペリエンスにどの ように影響するかをより深く 理解することにつながる
  18. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. まとめ • 1から計装したり、分析を検討していくことは⼤変。CloudWatch Application Signalsを利⽤することで、今すぐオブザーバビリティを獲得し、運⽤業務に 取り込むことができる。 • オブザーバビリティに取り組みたいと思ってはいるものの、着⼿できてない⽅ はまず利⽤してみて欲しい • 特にEKSで実⾏されるJavaまたはPythonアプリケーションを実装している場合 には簡易に導⼊できるのでおすすめ
  19. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Amazon CloudWatch Application Signals を はじめてみよう One Observability Workshop Application Signals Demo
  20. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. AWS イベントのお知らせ https://aws-startup- lofts.com/apj/loft/tokyo/event/3b5d7 0e2-9674-475b-8bd7-754b608b64b7 AWS 秋の Observability 祭り ~明⽇使えるアセット祭り~ イベント概要︓ 近年、システムの複雑化に伴い、Observability の重要性が⾼ まっています。そして、同時に Observability を実現する サービスや機能は様々ありますが、それらを組み合わせるこ とは難しいと考えています。本セミナーではObservability を 実現するために必要なサービスや機能のセットをご紹介し、 それを実現するアセットをご提供します。AI による Observability、負荷試験における Observability、 CloudWatch を使ったネットワーク監視、異常検知など様々 なユースケースに対応するサービスをデモでご紹介します。 イベント詳細確認・登録はこちら ⽇時︓2024/11/1 (⾦) 19:00-21:00 場所︓AWS Startup Loft Tokyo (⽬⿊セントラルスクエア 17F)
  21. © 2024, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Confidential and Trademark. Thank you! Mitsuaki Tsugo Amazon Web Service Japan G.K. Solutions Architect