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
AWSとNew Relicのデータ連携を超高速で実装した話 / The story of a super-fast implementation of data integration between AWS and New Relic
Search
TomoyaKitaura
December 15, 2021
Technology
0
1.2k
AWSとNew Relicのデータ連携を超高速で実装した話 / The story of a super-fast implementation of data integration between AWS and New Relic
12/15 NRUGで発表させていただいた資料です。
TomoyaKitaura
December 15, 2021
Tweet
Share
More Decks by TomoyaKitaura
See All by TomoyaKitaura
社内共通コンテナレジストリを設立して、開発者体験向上を狙ってみた /Establishing container registry to improve DX
tomoyakitaura
2
150
LTワークショップ3日目 / LT Workshop Day 3
tomoyakitaura
0
120
LTワークショップ2日目 / LT Workshop Day 2
tomoyakitaura
0
120
LTワークショップ(1日目) / LT workshop day 1
tomoyakitaura
1
130
これまでの監視とクラウド時代の監視 / Monitoring the Past and the Cloud
tomoyakitaura
1
210
エンタープライズにおけるSRE立ち上げとNew Relic選定に至った背景とは / SRE Startup and New Relic in the Enterprise
tomoyakitaura
2
650
Resilience Hubの登場が騒がれないなんておかしい!? / Resilience Hub is the best.
tomoyakitaura
0
200
セキュリティ勉強会 / How do we confront the threat
tomoyakitaura
0
120
ロードバランサーの種類に応じた使い分け / How to use different types of load balancers
tomoyakitaura
0
110
Other Decks in Technology
See All in Technology
データ分析基盤を作ってみよう~設計編~
nrinetcom
PRO
1
110
Github Actions 로 Android 팀의 효율성 극대화
hadonghyun
0
160
E2Eテスト自動化プラットフォームにおけるAIの活用
shift_evolve
0
190
What if...? 처음부터 다시 LLM 어플리케이션을 개발한다면
huffon
0
1k
テスト・設計研修【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
170
Matterport を使ってクラスメソッド各拠点のバーチャルオフィスツアーを作成してみた
wakatsuki
0
160
「単なる OAuth 2.0 を認証に使うと、車が通れるほどのどでかいセキュリティー・ホールができる」のか検証してみた
terara
0
380
dxd2024-生成AIに振り回された3か月間の成功と失敗/dxd2024-link-and-motivation
lmi
2
260
Classmethod流のPlatform Engineering / classmethod-platform-engineering-devio2024
tomoki10
0
470
AIアシスタントの活用で品質の向上と開発ワークフローのスピードアップ
nagix
1
200
20240724_cm_odyssey_hibiyatech
hiashisan
0
110
さらに高品質・高速化を目指すAI時代のテスト設計支援と、めざす先 / AI Test Lab vol.1
shift_evolve
0
190
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
266
20k
Rebuilding a faster, lazier Slack
samanthasiow
78
8.5k
What’s in a name? Adding method to the madness
productmarketing
PRO
21
2.9k
Design by the Numbers
sachag
277
18k
How to train your dragon (web standard)
notwaldorf
79
5.5k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
12
3.8k
Debugging Ruby Performance
tmm1
71
11k
No one is an island. Learnings from fostering a developers community.
thoeni
17
2.8k
What's in a price? How to price your products and services
michaelherold
239
11k
Designing with Data
zakiwarfel
96
5k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
36
9.1k
The Invisible Customer
myddelton
117
13k
Transcript
AWSとNew Relicのデータ連携を 超高速で実装した話 株式会社 mediba Tomoya Kitaura 2021/12/15 NRUG (New
Relic User Group) Vol.1
自己紹介 Tomoya Kitaura @kitta0108 mediba inc. SRE Unit ▪勉強会運営 -
- JAWS-UG コンテナ支部 - JAWS-UG SRE支部 - NRUG SRE支部??? ▪好きなNew Relicのサービス - NRQL 2 2
今回お話すること AWSとのIntegration超簡単 3
聴講の想定者 - AWSを使っていて、 これからNew Relic導入するぞという方 4 - AWSとIntegrationする仕組みを おさらいしたい方
5
CloudWatch Metricsの連携 6
IAM Roleの作成 7
IAM Roleの連携 8
CloudWatch Metrics Streamリソース群の作成 9
公式のCFnテンプレートで脳死デプロイ 10 https://docs.newrelic.com/jp/docs/infrastructure/amazon-integrations/aws-integrations-list/aws-metric-stream/
EC2Instance Processデータ連携 11
New Relic Infra Agentのインストール 12 https://galaxy.ansible.com/newrelic/newrelic-infra Galaxy Ansibleを 使った方法が一番楽でした (サンプルコード出せなくてすません)
※ ちょっとしたハマりポイント enable_process_metrics: true ↑が設定に無いと一生データが届きませんw
Application Logの連携 13
公式のAWS Serverless Application Repositoryから脳死デプロイ 14
CloudWatch LogsのSubscriptionはTerraformで。 15
できた? 16
Next Step!! 17 - フルスタックオブザーバビリティの実装 - New Relic Browserの導入 -
New Relic APMの導入 - New Relic Mobileの導入 - New Relic Syntheticsの導入 - New Relic Serverlessの導入 - ちょうかっちょいいダッシュボードの作成 - ビジネス層と合意した指標の可視化 - エラーバジェット運用の開始 - Alerts & AI機能による異常検出力の強化 - etc…
おまけ Alert設定のTerraformディレクトリ構成 18 newrelic-aleat ┣main.tf ┣backend.tf ┣alert_channel.tf ┣terraform.tfvars ┣variable.tf ┣env
┃┣dev.tfvars ┃┣stg.tfvars ┃┗prd.tfvars ┣aws_alert_alb.tf ┣aws_alert_rds.tf ┣… ┣logs_alert_nginx.tf ┣logs_alert_var_log_messages.tf ┣… ┣process_alert_nginx.tf ┣process_alert_sshd.tf ┗log-ingestion ┣provider.tf ┣backend.tf ┣versions.tf ┣var_log_messages.tf ┣nginx_error.tf ┗… aws_alert_xxx -> CloudWatch Metrics関連 logs_alert_xxx -> Application Log関連 process_alert_xxx -> ProcessData関連 log-ingestion配下 -> Lambda Subscription Filter設定
さいごに 19 より高みを目指した開発を行うことの過程を みんなで楽しんでいきましょう!! ご静聴ありがとうございました!!