- 最新
- 最多得票
- 最多評論
Filtering by tags directly within a CloudWatch search expression for metrics isn't directly supported in the syntax you've provided. The SEARCH function in CloudWatch allows you to search across metrics based on namespace, metric name, and dimensions such as FunctionName in the case of AWS Lambda, but it does not natively support filtering by resource tags in the search expression itself.
Another approach is to use AWS resource groups to organize resources based on tags, and then use the CloudWatch integration with these groups to focus on the metrics for these grouped resources. However, this doesn’t directly change the search expression but could help in narrowing down the metrics you're interested in through the AWS Management Console or through automated scripts that leverage AWS SDKs.
相關內容
- AWS 官方已更新 1 年前
Thanks for the quick answer! This is a huge oversight on AWS part IMO. Having a way to automatically update dashboards without resorting to a user created updating function should be a focus, search expressions should be more proeminently displayed for that and not integrating it with user tags is a big missed opportunity.