Metric Filters
Extract metrics from log patterns without storing aggregated data:
{
"FilterPattern": "{ $.level = \"ERROR\" }",
"MetricName": "ErrorCount",
"MetricNamespace": "TaskService",
"MetricValue": "1",
"DefaultValue": 0
}
Metric filters run in real time as logs are ingested — feed CloudWatch Alarms without a separate Prometheus scrape.