CloudWatchMetricFilterConfig Type
Configuration for CloudWatch Metric Filter. Extracts metrics from log events based on pattern matching. **Use Cases:** - Extract custom business metrics from application logs - Monitor error patterns and frequencies - Track specific application events - Create alarms on log-based metrics **Best Practices:** - Use structured logging (JSON) for easier pattern matching - Test filter patterns with CloudWatch Logs Insights - Set appropriate metric units - Use metric namespaces to organize custom metrics
Record fields
| Record Field | Description |
Full Usage:
ConstructId
Field type: string option
|
|
Full Usage:
DefaultValue
Field type: float option
|
|
Full Usage:
FilterName
Field type: string
|
|
|
|
|
|
|
|
Full Usage:
MetricName
Field type: string option
|
|
Full Usage:
MetricNamespace
Field type: string option
|
|
Full Usage:
MetricValue
Field type: string option
|
|
|
FsCDK