Skip to content

[BUG] when using searchTags and ALB discovery, if target group doesn't have item matched searchtags, #1620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
KimMJ opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@KimMJ
Copy link

KimMJ commented Jan 14, 2025

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

  1. Make sure two ALB have test_cloudwatch_exporter=true tag
  2. Make sure NO TargetGroup has test_cloudwatch_exporter=true tag
  3. Run yace with this config

Then it returns target group metric for all TG

And then...

  1. Make sure two ALB have test_cloudwatch_exporter=true tag
  2. Make sure any TargetGroup has test_cloudwatch_exporter=true tag
  3. Run yace with this config

Then it returns target group metric correctly.

Anything else?

No response

@KimMJ KimMJ added the bug Something isn't working label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant