Open mermino opened 2 years ago
I am not sure what the request is here. The exporter generically interacts with CloudWatch, and fetching these metrics should work. With the configuration you provided, what happens?
I am not using ECS, so I can't test. Could you share how you would get the metrics using the AWS CLI?
@mermino First check: do you have containerInsights
enabled for the ECS service? Also, looking at your aws_dimensions
they seem a little too crowded though I can only comment on the dimensions for ECS Fargate. I am able to see ContainerInsight metrics in Prometheus using this config for cloudwatch-exporter:
...
- aws_namespace: ECS/ContainerInsights
aws_metric_name: RunningTaskCount
aws_statistics: [Average, Minimum]
aws_dimensions: [ClusterName, ServiceName]
aws_dimension_select_regex:
ClusterName: ["<cluster-name>/foo*"]
set_timestamp: false
...
This is a screenshot from Cloudwatch showing me the metrics dimensions:
Proposal
Use case. Why is this important?
To collect metrics for ECS containers!
How do you think the new configuration should look like?
Example: