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
840
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
adot-collectorを本番環境に導入してみた
clouddev-code
September 26, 2023
More Decks by clouddev-code
See All by clouddev-code
Agent_Core_Interpreter_その他のSandox環境について.pdf
cloudevcode
0
23
ECSでのinit_containerを利用したOpen_Telmetry自動計装.pdf
cloudevcode
0
190
microVMsのユースケースを考える.pdf
cloudevcode
0
65
cdk8s_Helm_どちらを選ぶべきか_rev.pdf
cloudevcode
0
310
Regional_NAT_Gatewayについて_basicとの違い_試した内容スケールアウト_インについて_IPv6_dual_networkでの使い分けなど.pdf
cloudevcode
1
950
Grafana_LokiをECS_Fargateで構築する観点公開版.pdf
cloudevcode
0
72
ADK_for_Java.pdf
cloudevcode
1
120
initContainerをECSで実現したい.pdf
cloudevcode
0
72
VPC_Lattice検討したが_採用しなかった話.pptx.pptx.pdf
cloudevcode
0
40
Featured
See All Featured
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
600
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
780
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
43k
First, design no harm
axbom
PRO
2
1.3k
Writing Fast Ruby
sferik
630
63k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
540
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
270
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
Leo the Paperboy
mayatellez
10
2.4k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.4k
Transcript
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 •