CloudWatchの新機能「Metrics Centralization」で、Organizations内のメトリクスの集約を試してみた | DevelopersIO
00:02:35 ・ source: https://dev.classmethod.jp/articles/cloudwatch-metrics-centralization-cross-account/
Transcript
hostenToday we're discussing CloudWatch's new Metrics Centralization feature for aggregating metrics across AWS Organizations.
guestja今日はCloudWatchの新機能「Metrics Centralization」について、Organizations内でメトリクスを集約する方法を見ていきます。
hostenThis feature lets you physically copy metrics from source accounts to a centralization account.
guestjaこの機能により、ソースアカウントのメトリクスを集約先アカウントに物理的にコピーできます。
hostenIt differs from OAM because data gets replicated rather than cross-referenced.
guestja従来のOAMとは異なり、データが参照ではなく複製されるという点が重要ですね。
hostenThe admin account creates a Centralization Rule specifying source accounts and regions.
guestja管理アカウントからCentralization Ruleを作成して、対象アカウントとリージョンを指定します。
hostenAggregated metrics automatically get source identification tags added to them.
guestja集約されたメトリクスには、ソース識別情報が自動的に付与されます。
hostenClassic metrics receive :@aws.account and :@aws.region dimensions automatically.
guestjaPutMetricData経由のClassicメトリクスには、:@aws.account と :@aws.region ディメンションが付きます。
hostenOpenTelemetry metrics get @aws.account and @aws.region attributes instead.
guestjaOTLP経由のOTelメトリクスには、@aws.account と @aws.region 属性が付与されます。
hostenYou can also aggregate logs using the same Centralization Rule.
guestja同じCentralization Ruleでログの集約も設定できるのですね。
hostenNew data starts arriving at the centralization account within about five minutes.
guestjaルール作成後、新しいデータは約5分で集約先アカウントに到着します。
hostenAlarms can be created locally in the aggregation account using Classic or PromQL queries.
guestja集約先アカウントではClassicまたはPromQLを使ってローカルにアラームを作成できます。
hostenPromQL alarms include the threshold condition directly within the query string.
guestjaPromQLアラームでは、閾値条件をクエリ内に含める必要があります。
hostenLog streams get a suffix with source account ID and region for identification.
guestjaログストリーム名には、ソースアカウントIDとリージョンのサフィックスが自動付与されます。
hostenFirst metric copies are free, but subsequent API calls follow normal CloudWatch pricing.
guestja最初のメトリクスコピーは無料ですが、その後のAPIコール利用料金は通常通りです。
hostenThis feature is ideal for centralized monitoring across Organizations at scale.
guestjaOrganizations全体の一元的な監視に、この機能は非常に有効ですね。