You might notice that some of the metrics are missing when you ‘Add Data’ for AWS flow on the Observe UI.
AWS doesn’t provide a single API or CLI command to retrieve all CloudWatch metric names across services. To view available metrics, please run the following AWS CLI command for each namespace and share the output with Observe Support:
aws cloudwatch list-metrics \
--namespace "AWS/SecretsManager" \
--region us-east-1 \
--output json | jq -r '.Metrics[].MetricName' | sort -u
Replace “AWS/SecretsManager” with the desired namespace, such as AWS/CloudFormation, AWS/CloudTrail, AWS/Config, AWS/SSM-RunCommand, or AWS/Usage.
If you use a profile, you can run the command similar to below:
aws cloudwatch list-metrics \
--namespace "AWS/SecretsManager" \
--region us-east-1 \
--profile <your-profile> \
--output json | jq -r '.Metrics[].MetricName' | sort -u