Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
多数の観測対象と複数のO11yバックエンドをOTELで横断的に繋いだ実装について
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
KintoTech_Dev
May 22, 2026
Technology
59
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
多数の観測対象と複数のO11yバックエンドをOTELで横断的に繋いだ実装について
KintoTech_Dev
May 22, 2026
More Decks by KintoTech_Dev
See All by KintoTech_Dev
人とエージェントが高め合う協業設計
kintotechdev
0
690
AI_Dev_Day_製造業領域でのAI活用から見た活用の罠と成功に導く実践知.pdf
kintotechdev
0
100
RAGの精度向上とエージェント活用
kintotechdev
2
170
MOSKINというTypeScriptプロダクトを新規立ち上げする中で踏んだ地雷
kintotechdev
0
370
KINTO Fukuoka Tech Lounge #1 E2E × AI
kintotechdev
0
86
個人の発見を、組織の知恵に 〜生成AI活用を"探索"から"組織の仕組み"へ〜
kintotechdev
3
1.6k
Strands Agents超入門
kintotechdev
1
280
Splunk MCPサーバの利活用事例 ーKINTOテクノロジーズの取り組み
kintotechdev
1
710
型の深宇宙へ飛び込め — TSKaigi 2026 LT
kintotechdev
2
640
Other Decks in Technology
See All in Technology
「顧客の声を聞かなければ何も始まらない」 ── 顧客の声から生まれた『AI返信補助機能』の開発プロセス / AICon2026_shikata_imai
rakus_dev
0
250
全員がリーダーである世界へ キリマンジャロ登頂とシェアド・リーダー
jinwatanabe
0
120
AI、CDK と協働する Full TypeScript アプリケーション開発 / Full TypeScript Application with AI and CDK
geekplus_tech
2
450
GoでCコンパイラを作った話
repunit
0
150
仕様駆動開発、導入半年。「本当に速くなってるの?」にデータで答える / AICon2026_hirakawa
rakus_dev
0
300
20260720_クラウド女子会×PyLadiesTokyoコラボ Amazon Bedrock ハンズオン用資料
yuuka51
1
100
ファミコンでPHPを動かす / PHP on the Famicom
tomzoh
2
580
実践!既存 Project への AI-Driven Development 適用〜 一ヶ月で Project 唯一のフロントエンドエンジニアを作り出せ〜
lycorptech_jp
PRO
0
380
しくみを学んで使いこなそう GitHub Copilot app
torumakabe
2
320
LLM/Agent評価:トップ営業の発言を「正解」にする 〜暗黙的正解による評価を営業資産に変える〜
takkuhiro
1
240
AI Native なプロダクト組織の立ち上げ方 : 生産性 100 倍への挑戦
mikesorae
0
1.2k
JAWS_ICEBERG_BASECAMP
iqbocchi
2
100
Featured
See All Featured
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
190
A Soul's Torment
seathinner
6
3.1k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
340
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
400
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.4k
Leo the Paperboy
mayatellez
8
1.9k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.8k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2.1k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
610
The World Runs on Bad Software
bkeepers
PRO
72
12k
Embracing the Ebb and Flow
colly
88
5.1k
Transcript
多数の観測対象と複数のO11yバックエンドを OTELで横断的に繋いだ実装について 2026/05/21 OpenTelemetryMeetup 2026-05 Kinto Technologies Corporation Platform Group
/ Platform Engineering Team Senior Cloud Engineer / Assistant Manager Jumpei Shimamura
©KINTO Corporation. All rights reserved. 2 プロフィール KINTOテクノロジーズ株式会社 プラットフォーム開発部 /
Platform Group Platform Engineering Team Senior Cloud Engineer / Assistant Manager 島村 純平(しまむら じゅんぺい) <経歴> 2009〜2021 新卒で航空系システム子会社へ入社 インフラエンジニアとして勤務 2021〜 KINTOにDevOps担当として入社 文化浸透の活動や標準化活動などを実施 現在はPlatform Engineering Teamのリーダーとして 生産性向上のためのツール開発・社内展開を実施
©KINTO Corporation. All rights reserved. 3 Index 1 KINTOテクノロジーズのo11y概要 2
複数基盤向けのメトリクス転送要件 3 目次 3 パイプライン実装概要 4 課題とまとめ
©KINTO Corporation. All rights reserved. 4 KINTOテクノロジーズのo11y概要 1
©KINTO Corporation. All rights reserved. 5 過去の構成 X-Ray Amazon OpenSearch
Amazon Grafana Amazon Prometheus 計装・収集 データ 保存 可視化 Metrics Log Trace AWS Distro OpenTelemetry X-Ray Amazon OpenSearch NewRelicAgent Metrics Log Trace AWSのマネージドサービスメイン NewRelicとは完全に使い分け
©KINTO Corporation. All rights reserved. 6 2025年10月に新基盤に移行しました(しはじめました) 計装・収集 データ 保存
可視化 Metrics Log Trace AWS Distro OpenTelemetry NewRelicAgent Metrics Log Trace Grafana Loki Grafana Tempo Grafana Alloy 自作Logger GrafanaLabsのOSSスタックへ移行 https://blog.kinto-technologies.com/posts/2025-12-14-monitoringplatform-renewal/
©KINTO Corporation. All rights reserved. 7 複数基盤向けのメトリクス転送要件 2
©KINTO Corporation. All rights reserved. 8 内部的なo11yの使い分け ・しっかりと運用したいプロダクト ・関連するサービスが多いプロダクト ・社内プロダクト
・ある程度の運用で良いプロダクト ・申し込み系 ・車両管理系 ・PlatformGのシステム ・コンテンツ ・Claudeの利用状況 Application / AWS (ALB/CDN/WAF/Lambda/RDS) / ClaudeCowork Application / ClaudeCode Logs Metrics Upload
©KINTO Corporation. All rights reserved. 9 メトリクス・ログの流れ Application AWS(ALB/CDN) AWS(WAF/Lambda/RDS)
Claude(cowork/code) S3 Firehose Alloy 自作Logger o11y Account A Account B Tenant C Tenant D Application Ops CloudInfra Claude利用者 セキュリティ
©KINTO Corporation. All rights reserved. 10 メトリクス・ログの流れ Application AWS(ALB/CDN) AWS(WAF/Lambda/RDS)
Claude(cowork/code) S3 Firehose Alloy 自作Logger o11y Account A Account B Tenant C Tenant D Application Ops CloudInfra Claude利用者 セキュリティ
©KINTO Corporation. All rights reserved. 11 パイプライン・実装概要 3
©KINTO Corporation. All rights reserved. 12 要件と考え方 送信先のバックエンドが複数ある アプリログ・メトリクス・AWSログと複数のインプットがある コストやプロダクト要件により転送先を柔軟にしたい
©KINTO Corporation. All rights reserved. 13 パイプライン、otelの実装(自作Logger) ・Golang製、既存ではLogstashで実施していた機能を置換 ・LogstashにOtelPluginはあるが古いのもあり内製 ・送付先がNewRelic/Lokiと複数
・otel/sdk/logとotel/logを使用 Worker Worker Worker queue processor sender ・SQSポーリング storage ・S3ファイル取得 ・ログFormat ・OTELLOG変換 ・OTEL/HTTPで送信 NewRelicの中のアカウント送信振分は、LoggerのPod自体を分離してEventBridge/SNS/SQS側で整理 (AWS系のログのため、Loki/NewRelic両方へ送付)
©KINTO Corporation. All rights reserved. 14 パイプライン、otelの実装(自作Logger) // log.Exporter を埋め込み、Export()
をオーバーライド func (e *ExporterWithErrors) Export(ctx, logs) error { err := e.Exporter.Export(ctx, logs) // 元の処理 if err != nil { // atomic.Pointer でスレッドセーフにエラーを蓄積 e.errors.Store(...) } return err } 独自のSDKラッパーを作成 Exporter With Errors Logger Wrapper type LoggerWrapper struct { otelLogger otelLog.Logger } func (lw *LoggerWrapper) Emit(ctx, record) { lw.otelLogger.Emit(ctx, record) } Provider Wrapper type ProviderWrapper struct { otelProvider *log.LoggerProvider } // Shutdown / ForceFlush を nil ガード付きで委譲 テスト時にモックを作りやすくするために、使う機能(Emit)だけに絞ったインターフェースを定義
©KINTO Corporation. All rights reserved. 15 パイプライン、otelの実装(Alloy) AWS(WAF/Lambda/RDS) Claude(cowork/code) Alloy
AWS(WAF/Lambda/RDS) Firehose Alloy Firehose Alloy loki. source. awsfirehose otelcol. receiver. loki loki. process (tenant) otelcol. exporter. otelhttp loki. source. awsfirehose otelcol. receiver. loki otelcol. processor. batch otelcol. exporter. otelhttp otelcol. receiver. otlp otelcol. processor. batch otelcol. auth. header otelcol. exporter. otlphttp otelcol. exporter. splunkhec loki. process (timestamp) loki. write. dynamic_tenant otelcol. processor. batch
©KINTO Corporation. All rights reserved. 16 パイプライン、otelの実装(Application系設定) Application AWS for
Fluent Bit - PlatformGでConfigを含めてビルドして提供 - Sidecarとして起動 - NewRelicとLokiのどっちに送るかは使用イメージと設定により変えている - 2025/10にFluentbit v4.1.1ベースになるまで、[OUTPUT]でopentelemetryが使えず AWS Distro for OpenTelemetry (adot) - PlatformGで特定バージョンをECRへ保管してサポート - Sidecarとして起動 - ParameterStoreにConfigを記載して設定
©KINTO Corporation. All rights reserved. 17 パイプライン、otelの実装(ログ統一の検討) Sidecarの統一を検討しましたが、firelensの仕様やS3にも永続保存のため書き出す要件 アプリケーション側の移行を考慮して、このタイミングでは実施しませんでした。 -
firelensの送信先としてotelの設定が難しい - fluentbitだとForwardのINPUTを使って標準出力を受けている - otelだと該当するReceiverがなさそう - S3のExporterがadotに存在しない(otel pluginは存在するので、自力でビルドすれば可能) - OpenTelemetryのINPUTだと定期的なスクレイピングができない(受信) - Prometheusのスクレイピングはあるのでアプリケーションメトリクスはできそう - OpenTelemetryとNewRelicのOUTPUTはある - ECSのコンテナ周りのメトリクス収集が課題
©KINTO Corporation. All rights reserved. 18 課題 4
©KINTO Corporation. All rights reserved. 19 課題 ログのキューイングの仕組みがない NewRelicやLokiで429 TooManyが発生したり
失敗した際に、アプリケーションログの部分でOoMの懸念がある (AWS系はLoggerやFirehose、Alloyでキューイングされている) 自作LoggerからNewRelic向けの失敗が多い レスポンスで500エラーが発生しているが、原因がわかっていない
Thank you !