Skip to content
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

[BUG] alb, nlb targetgroup metrics not joinable on name with aws_(alb,nlb)_info metric #529

Closed
1 task done
domcyrus opened this issue Feb 21, 2022 · 0 comments · Fixed by #530
Closed
1 task done
Labels
bug Something isn't working

Comments

@domcyrus
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The metrics emitted by yace for alb and nlb regarding targetgroup metrics e.g. aws_alb_healthy_host_count_minimum are not possible to correlate with the respective aws_(alb,nlb)_info metric. (https://github.com/nerdswords/yet-another-cloudwatch-exporter#query-examples-without-exportedtagsonmetrics)

The problem is that the name label (arn) for the info metric is using the targetgroups ARN while the targetgroup related metric e.g. aws_alb_healthy_host_count_minimum is using the loadbalancers ARN.

aws_alb_healthy_host_count_minimum{name="arn:aws:elasticloadbalancing:eu-west-1:1111:loadbalancer/app/alb-external/asdfasdf"}

aws_alb_info{name="arn:aws:elasticloadbalancing:eu-west-1:1111:targetgroup/asdf-asdf/xasdf", tag_Port="9999"}

This does not work to join with:
(aws_alb_healthy_host_count_minimum + on (name) group_left(tag_Port) aws_alb_info)

Expected Behavior

Being able to join the targetgroup related metrics.

Steps To Reproduce

Use targetgroup related metrics like:

"discovery":
  "jobs":
  - "enableMetricData": true
    "metrics":
    - "length": 300
      "name": "HealthyHostCount"
      "period": 300
      "statistics":
      - "Minimum"
    - "length": 300
      "name": "UnHealthyHostCount"
      "period": 300
      "statistics":
      - "Maximum"
    "regions":
    - "eu-central-1"
    "type": "alb"

Try to join targetgroup related metrics.

Anything else?

No response

@domcyrus domcyrus added the bug Something isn't working label Feb 21, 2022
domcyrus pushed a commit to domcyrus/yet-another-cloudwatch-exporter that referenced this issue Feb 21, 2022
thomaspeitz pushed a commit that referenced this issue Mar 26, 2022
Co-authored-by: Marco Cadetg <Marco_Cadetg@swissre.com>
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

Successfully merging a pull request may close this issue.

1 participant