Custom DataSource for AWS ECS Container Insights Metrics Not Polling
Hi LogicMonitor Community,
We are trying to build a custom AWS_CLOUDWATCH DataSource to collect per-service CPU and memory metrics from AWS ECS Container Insights.
Objective
Our goal is to monitor CPUUtilized and MemoryUtilized for each ECS service in the prod-webapp cluster and display these metrics on a LogicMonitor dashboard.
AWS Validation Completed
We have verified using AWS CLI and CloudWatch that the following metrics are available and returning valid datapoints:
Namespace:
ECS/ContainerInsightsMetrics:
CPUUtilized,MemoryUtilizedDimensions:
ClusterName = prod-cluser-appServiceName = <ecs-service-name>
Statistic:
Average
Custom DataSource Configuration
Collection Method:
AWS_CLOUDWATCHActive Discovery Method:
CLOUDWATCHNamespace:
ECS/ContainerInsightsMetric Names:
CPUUtilized, MemoryUtilizedDevice Dimension Name:
ClusterNameInstance Dimension Name:
ServiceNameMetrics Period:
900
Datapoint Metric Paths
Current Issue
The DataSource status shows Not in Use, even though the AWS metrics are confirmed to exist and return data through the AWS CLI.
The standard AWS_ECS_ClusterServices DataSource is working correctly in our environment, so AWS credentials and ECS monitoring are functioning as expected.
Question
Has anyone successfully implemented a custom DataSource for ECS Container Insights metrics using AWS_CLOUDWATCH? If so, are there any specific requirements or best practices for:
AppliesTo expressions
Active Discovery configuration
CloudWatch metric path formatting
Multi-instance setup
Any guidance or examples would be greatly appreciated.
Thank you!