There could be a number of reasons for receiving an error message indicating invalid metrics while trying to set up a metric alarm using expressions in Terraform, including:
Incorrect syntax: The expression used to define the metrics may be missing or have incorrect syntax.
Incorrect metric name: The metric name used in the expression may not be valid or may not exist.
Incorrect namespace name: The namespace name used in the expression may not be valid or may not exist.
Incorrect dimension name or value: The dimension name or value used in the expression may not be valid or may not exist.
Permissions issue: The user attempting to create the metric alarm may not have the necessary permissions to access the metrics data required by the expression.
Cloud provider issue: There may be an issue with the cloud provider's metrics system that is preventing the expression from being properly evaluated.
Asked: 2022-07-14 11:00:00 +0000
Seen: 11 times
Last updated: Nov 21 '22