CmdID / aws / aws cloudwatch
aws cloudwatch list-metrics
List the specified metrics. AWS CLI reference
7 options Its page in the AWS CLI reference
Options
--dimensionsThe dimensions to filter against.--include-linked-accountsIf you are using this operation in a monitoring account, specify true to include metrics from source accounts in the returned data.--metric-nameThe name of the metric to filter against.--namespaceThe metric namespace to filter against.--next-tokenThe token returned by a previous call to indicate that there is more data available.--owning-accountWhen you use this operation in a monitoring account, use this field to return metrics only from one source account.--recently-activeTo filter the results to show only metrics that have had data points published in the past three hours, specify this parameter with a value of PT3H.