For a seamless integration of your AWS account with New Relic, integration via CloudFormation and CloudWatch metric stream is the recommended approach. If you can't use CloudFormation templates and don't want to use Terraform, follow this procedure to integrate manually from the AWS console.
ヒント
- If you manage multiple AWS accounts, connect each account to a single New Relic account.
- If you manage multiple regions within those accounts, create a separate Kinesis Data Firehose for each region.
前提条件
AWS アカウントと New Relic の統合を開始する前に、次の前提条件を満たしていることを確認してください。
- New RelicIngest [の取り込み] - ライセンスキーとユーザー キー: AWSサービスをNew Relicアカウントに接続するには、これらのキーが必要です。
- Permissions to deploy new AWS resources and IAM roles: You'll need this permission for your AWS account.
- クラウドインテグレーションの権限: New Relicアカウントにはこれらの権限が必要です。
Create a Kinesis Data Firehose delivery stream
In the AWS console, set the following destination parameters for the delivery stream:
ソース: Direct PUTまたはその他のソース
目的地New Relic
Data transformation: Disabled
Record format conversion: Disabled
以下の設定が定義されていることを確認してください。
New Relicの設定(Destination Settings):
HTTPエンドポイントURL:
- USデータセンター:
https://aws-api.newrelic.com/cloudwatch-metrics/v1 - EUデータセンター:
https://aws-api.eu01.nr-data.net/cloudwatch-metrics/v1 - JPデータセンター:
https://aws-api.jp.nr-data.net/cloudwatch-metrics/v1
- USデータセンター:
APIキー: を入力してください
コンテンツエンコーディング:
GZIP再試行期間:
60New Relicのバッファ条件:
- バッファサイズ:
1 MB - バッファ間隔:
60 (seconds)
- バッファサイズ:
S3 backup mode: Failed data only
S3バックアップバケット: 送信に失敗したメトリクスを保存するバケットを選択するか、新しく作成します。
高度な設定:
- サービスアクセス: IAMロールに権限を提供します:
Create or update IAM role
- サービスアクセス: IAMロールに権限を提供します:
CloudWatch Metric Streamsの作成
- In the AWS console, go to CloudWatch service, select Streams under the Metrics menu, and click Create metric stream.
- To control which AWS services send metrics to New Relic, configure inclusion and exclusion filters.
- From the Firehose delivery stream list, select the stream you created, then enter a meaningful name for the metric stream, for example,
newrelic-metric-stream. - 出力形式フィールドで、
Open Telemetry 0.7またはOpen Telemetry 1.0を選択します。JSONはサポートされていません。
Connect your AWS account to New Relic
New Relicで、Infrastructure > AWSに移動します。
正しいアカウントを選択してください。
Set up integrationをクリックします。
各画面で、該当するフィールドに入力します。このインテグレーションでは、以下のオプションを選択します:
- Choose Data type(s): Metrics
- Choose a setup method: Manually integrate your AWS account
Select services画面で、必要に応じてShow resources not supported by CloudWatch Metric Streamsを切り替え、モニターするサービスを選択して続行します。
Choose data integration type画面で、以下のオプションから選択します:
- Real-time AWS monitoring (Recommended): This option is for services that support CloudWatch Metric Streams.
- APIポーリング: このオプションは、CloudWatch Metric Streamsでサポートされていないサービス向けです。
From the Create role page to the Configure budgets policy page, follow the on-screen instructions and complete the steps in the AWS console.
データを検証
Metric Streamsからデータを受信していることを確認するには:
In New Relic, go to one.newrelic.com > All capabilities > Infrastructure > AWS, search for your connected AWS account, and look for Stream accounts.
アカウントステータスダッシュボードで、エラーや取り込まれたネームスペースとメトリクスの数など、New Relicがメトリクスデータを受信していることを確認します。
特定のメトリクスを探索するには、分析するメトリクスのセットに対するクエリを記述します。
New Relic が新しいリソースを検出し、それをエンティティとして合成するまでに数分かかる場合があります。
ヒント
AWS CloudWatch metrics for global services, such as AWS Billing, are only available in the us-east-1 region. Make sure there's an active CloudWatch metric stream configured in that region.
関連トピック
複数のAWSアカウントからデータを収集する
複数の AWS アカウントからデータを収集する方法を学びます。
AWSインテグレーションのメトリクス
CloudWatch メトリック ストリームからメトリクスを探索して使用します。
CloudFormation と CWMS によるAWSインテグレーション
CloudFormation とCloudWatch Metric Streamsを使用して、 AWSサービスをNew Relicと統合します。
CloudFormation とAPIポーリングによるAWSインテグレーション
CloudFormation とAPIポーリングを使用して、 AWSサービスをNew Relicと統合します。
Terraform によるAWSインテグレーション
Terraform を使用してAWSサービスをNew Relicと統合します。