Open
Description
Is there an existing issue for this?
- I have searched the existing issues
YACE version
0.57.0,0.62.1
Config file
apiVersion: v1alpha1
discovery:
exportedTagsOnMetrics:
AWS/ApplicationELB:
- test_cloudwatch_exporter
jobs:
- addCloudwatchTimestamp: true
metrics:
- name: ActiveConnectionCount
statistics:
- Sum
- name: RequestCountPerTarget
statistics:
- Sum
period: 60
regions:
- ap-northeast-2
roles:
- roleArn: arn:aws:iam::<REDACTED>:role/cloudwatch-exporter
searchTags:
- key: test_cloudwatch_exporter
value: true
type: AWS/ApplicationELB
Current Behavior
cloudwatch exporter returns RequestCountPerTarget
metric for all Target Group in account.
Expected Behavior
cloudwatch exporter should return RequestCountPerTarget
metric for only TargetGroup linked to LoadBalancer which has test_cloudwatch_exporter=true
tag
Steps To Reproduce
- Make sure two ALB have
test_cloudwatch_exporter=true
tag - Make sure NO TargetGroup has
test_cloudwatch_exporter=true
tag - Run yace with this config
Then it returns target group metric for all TG
And then...
- Make sure two ALB have
test_cloudwatch_exporter=true
tag - Make sure any TargetGroup has
test_cloudwatch_exporter=true
tag - Run yace with this config
Then it returns target group metric correctly.
Anything else?
No response