Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
adot-collectorを本番環境に導入してみた
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
clouddev-code
September 26, 2023
860
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
adot-collectorを本番環境に導入してみた
clouddev-code
September 26, 2023
Transcript
24 slides
adot-collectorを本番環境に導入してみた
About us Soushi Hiruta コンテナを活用したマイクロサービス基盤設計、構築 SPA、BackendAPI基盤設計、構築 AWS CDK歴 1.5年ほど
CodeCatalystのDev Environmentsでpythonがaliasバージョン固定されている CodeCatalystのDev Environmentsでpyenvで別のバージョンいれても。。。 CodeCatalystのDev EnvironmentsはAmazonLinux2 /etc/profile.d/python3_default.sh
Agenda • 可観測性 • マイクロサービスでの可観測性の課題 • 収集方法 • 構成図 •
変更前 • 変更前の課題 • AWS Distro for OpenTelemetry Collector • 構成図 • 本番環境に適用して発生した課題 • まとめ
可観測 • マイクロサービス的システムでは分散システムになって、メトリクス だけは不十分 AWS Distro for OpenTelemetryを試してみた https://zenn.dev/kobayashi_m42/articles/try-aws-distro-for-opentelemetry
可観測
解決策
収集方法 • Cloudwatch Agent • AWS Distro for Open Telemetry
( ADOT )
全体構成図 CloudwatchAgent
CloudwatchAgent • ヒストグラムに対応していない、jvm metricsなどコンテナ単位で収 集しているので、長期的な傾向がみずらい • Cloudwatch logs、カスタムメトリクスの課金 •
AWS Distro for Open Telemetry
構成図 •
コンフィグ https://github.com/aws-observability/aws-otel-collector/blob/main/config/ecs/ecs-amp-prometheus.yaml メトリクス取得間隔、取得先の設定 左の例だと20s間隔で取得
コンフィグ https://github.com/aws-observability/aws-otel-collector/blob/main/config/ecs/ecs-amp-prometheus.yaml AMP Amazon Managed Prometheusの エンドポイントを設定
コンフィグ https://github.com/aws-observability/aws-otel-collector/blob/main/config/ecs/ecs-amp-prometheus.yaml Containerinsightsで取得できるcpu、メモ リも取得できる
コンフィグ https://github.com/aws-observability/aws-otel-collector/blob/main/config/ecs/ecs-amp-prometheus.yaml 受信(receivers)、処理(processors)、 exporterの設定を行う
AMPメトリクスのグラフ化 https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-onboard-query-standalone-grafana.html Amazon managed for Grafanaなど利用する。 AWS Signature Version 4
(SigV4) authenticationに対応したGrafanaである必要あり
問題ないようにみえたが。。。 •
• メモリ使用量が右肩上がり。。。
Memory Limiter Processor https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/memorylimiterproce ssor#memory-limiter-processor
Memory Limiter Processor https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/memorylimiterproce ssor#memory-limiter-processor
Memory Limiter Processor https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/memorylimiterproce ssor#memory-limiter-processor processorsに、memory_limiterをいれ る
まとめ • • ADOT sidecarを利用することでenvoy metrics、jvm metricsなど をAmazon managed for
prometheusにエクスポートできる • sidecarのメモリ制限は必須
紹介したリファレンス • • オブザーバビリティ・エンジニアリング https://www.oreilly.co.jp/books/9784814400126/ • WS Distro
for OpenTelemetryを試してみた https://zenn.dev/kobayashi_m42/articles/try-aws-distro-for-opentelemetry • https://github.com/aws-observability/aws-otel-collector • https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/memorylimite rprocessor#memory-limiter-processor •
More Decks by clouddev-code
See All by clouddev-code
Agent_Core_Interpreter_その他のSandox環境について.pdf
cloudevcode
0
34
ECSでのinit_containerを利用したOpen_Telmetry自動計装.pdf
cloudevcode
0
210
microVMsのユースケースを考える.pdf
cloudevcode
0
69
cdk8s_Helm_どちらを選ぶべきか_rev.pdf
cloudevcode
0
390
Regional_NAT_Gatewayについて_basicとの違い_試した内容スケールアウト_インについて_IPv6_dual_networkでの使い分けなど.pdf
cloudevcode
1
960
Grafana_LokiをECS_Fargateで構築する観点公開版.pdf
cloudevcode
0
76
ADK_for_Java.pdf
cloudevcode
1
120
initContainerをECSで実現したい.pdf
cloudevcode
0
79
VPC_Lattice検討したが_採用しなかった話.pptx.pptx.pdf
cloudevcode
0
46
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.2k
The browser strikes back
jonoalderson
0
1.9k
Done Done
chrislema
187
17k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
330
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
570
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.3k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
4
1.2k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.8k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
620
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k