Unable to fetch metrics from AWS/ECS - Cloudwatch input plugin

Hi All,

I have been trying to get the cloudwatch input plugin working with the AWS/ECS metrics, but I have been unable to get any data out. There are strangely no errors, but no data is picked up my the plugin either. PFB my configuration file

input {
    cloudwatch {
        namespace => "AWS/EC2"
        metrics => ["CPUUtilization", "DiskReadOps", "DiskWriteOps", "DiskReadBytes", "DiskWriteBytes", "NetworkIn", "NetworkOut"]
        region => "us-east-1"
        role_arn => "XXXXXXXXXXXXXXXXXXXXXXXX"
        interval => 300
        period => 60
    }
    cloudwatch {
        namespace => "AWS/ECS"
        metrics => ["CPUUtilization", "MemoryUtilization"]
        filters => { ClusterName => Common ServiceName => AppName}
        statistics => [ "Average" ]
        region => "us-east-1"
        role_arn => "XXXXXXXXXXXXXXXXXXXXXXX"
        interval => 600
        period => 300
    }
}

output {
    elasticsearch {
        hosts => ["http://X.X.X.X:9200"]
        sniffing => false
        index => "testing-%{+YYYY-MM-dd}"
    }
    stdout { codec => rubydebug }
}

I get the EC2 metrics and can see the data make it to Kibana, but not for the ECS. I have double checked the filters. and they are accurate as well.

[INFO ] 2019-09-20 18:34:28.584 [[main]<cloudwatch] cloudwatch - [Aws::CloudWatch::Client 200 15.580492 1 retries] get_metric_statistics(namespace:"AWS/ECS",metric_name:"CPUUtilization",start_time:2019-09-20 18:24:13 UTC,end_time:2019-09-20 18:34:13 UTC,period:300,statistics:["Average"],dimensions:[{name:"ClusterName",value:"[FILTERED]"}])

Is there anything that I am missing in the configuration?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.