Metricbeat aws module cloudwatch metricsets is ignoring tags
Elasticsearch Version
8.2.3
Installed Plugins
No response
Java Version
bundled
OS Version
Darwin Kernel Version 21.4.0
Problem Description
According to the documentation: https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-aws-cloudwatch.html
we can limit the number of aws cloudwath metrics fetched thanks to the tags.
Tags were working fine for metricbeat version 7.x (e.g. 7.15.1) but after upgrading to version 8 all the metrics are fetched regardless of the configuration.
Steps to Reproduce
Use metricbeat version 8 (tested using 8.2.3) with configuration like this:
metricbeat.modules:
- module: aws
regions: eu-west-1
period: 60s
metricsets:
- cloudwatch
metrics:
- namespace: AWS/EC2
name: CPUUtilization
statistic: ["Average"]
resource_type: ec2:instance
tags:
- key: "Project"
value: "test"
Expected: ec2 metrics are fetched only for instances with tag Project:test
Actual: All ec2 metrics are fetched
Logs (if relevant)
No response
Hi! We just realized that we haven't looked into this issue in a while. We're sorry!
We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!