1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
AWS CLI の get-resource-metrics コマンドは、GetResourceMetrics API に対応しております[1]。
この GetResourceMetrics API では、MetricQueries に指定できる要素の数に最小 1、最大 15 という制限がございます[2]。
今回「指定しているメトリクスの数が多く」とお伝えいただいておりますので、get-resource-metrics コマンドの --metric-queries オプションで指定している「E:\query.json」内の要素の数が 15 個以上である可能性がございます。
つきまして、「E:\query.json」に含まれる要素の数をご確認いただくとともに、15 個以上の場合には 15 個以下に減らすことで該当のエラーを回避できるかご確認いただけますと幸いです。
もし、上記に該当しない、または上記対応でもエラーを回避できない場合には、詳細調査が必要となりますので、下記情報とともに AWS サポートへお問い合わせいただけますと幸いです。
- 実行した AWS CLI コマンド
- 実行時に発生したエラー
- 対象 DB インスタンスの ARN
- --metric-queries オプションで指定した JSON ファイルの内容
参考:
[1] Performance Insights API for Aurora によるメトリクスの取得 - Amazon Aurora
[2] GetResourceMetrics - Amazon RDS Performance Insights
MetricQueries
An array of one or more queries to perform. Each query must specify a Performance Insights metric and specify an aggregate function, and you can provide filtering criteria. You must append the aggregate function to the metric. For example, to find the average for the metric db.load you must use db.load.avg. Valid values for aggregate functions include .avg, .min, .max, and .sum.
Type: Array of MetricQuery objects
Array Members: Minimum number of 1 item. Maximum number of 15 items.
Required: Yes
