Cloudwatchのメトリクス一覧をCLIで取得しました。
検証環境(Cloudshell)
[cloudshell-user@ip-10-0-30-133 ~]$ aws --version aws-cli/2.4.15 Python/3.8.8 Linux/4.14.252-195.483.amzn2.x86_64 exec-env/CloudShell exe/x86_64.amzn.2 prompt/off [cloudshell-user@ip-10-0-30-133 ~]$ jq --version jq-1.5
Cloudwatchのメトリクス一覧をCLIで取得
コマンド
aws cloudwatch list-metrics | jq -r ".Metrics | .[] | [.Namespace, .MetricName] | @csv" | sort | uniq
実行例
[cloudshell-user@ip-10-0-30-133 wk_0206]$ aws cloudwatch list-metrics | jq -r ".Metrics | .[] | [.Namespace, .MetricName] | @csv" | sort | uniq "AWS/CertificateManager","DaysToExpiry" "AWS/DynamoDB","AccountMaxReads" "AWS/DynamoDB","AccountMaxTableLevelReads" "AWS/DynamoDB","AccountMaxTableLevelWrites" "AWS/DynamoDB","AccountMaxWrites" "AWS/DynamoDB","AccountProvisionedReadCapacityUtilization" "AWS/DynamoDB","AccountProvisionedWriteCapacityUtilization" "AWS/DynamoDB","ConsumedReadCapacityUnits" "AWS/DynamoDB","ConsumedWriteCapacityUnits" "AWS/DynamoDB","MaxProvisionedTableReadCapacityUtilization" "AWS/DynamoDB","MaxProvisionedTableWriteCapacityUtilization" "AWS/DynamoDB","ProvisionedReadCapacityUnits" "AWS/DynamoDB","ProvisionedWriteCapacityUnits" "AWS/EBS","BurstBalance" "AWS/EBS","VolumeIdleTime" "AWS/EBS","VolumeQueueLength" "AWS/EBS","VolumeReadBytes" "AWS/EBS","VolumeReadOps" "AWS/EBS","VolumeTotalReadTime" "AWS/EBS","VolumeTotalWriteTime" "AWS/EBS","VolumeWriteBytes" "AWS/EBS","VolumeWriteOps" "AWS/EC2","CPUCreditBalance" "AWS/EC2","CPUCreditUsage" "AWS/EC2","CPUSurplusCreditBalance" "AWS/EC2","CPUSurplusCreditsCharged" "AWS/EC2","CPUUtilization" ...