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

Unable to export nlb metrics to prometheus #314

Open
venkat-doodala opened this issue Jan 28, 2021 · 2 comments
Open

Unable to export nlb metrics to prometheus #314

venkat-doodala opened this issue Jan 28, 2021 · 2 comments

Comments

@venkat-doodala
Copy link

Config.yml -

config: |-
discovery:
jobs:
- type: "nlb"
regions:
- us-west-2
metrics:
- name: ActiveFlowCount
statistics: [Average]
period: 300
length: 600

Logs in the pod says -

{"level":"error","msg":"Error describeTargetGroups for nlb , err: ValidationError: You cannot describe more than '20' target groups at a time\n\tstatus code: 400, request id: be72a022-a39c-4f19-bba4-28006315f616","time":"2021-01-28T20:42:30Z"}

@apuri1
Copy link

apuri1 commented Feb 3, 2021

Same issue here:

{"level":"error","msg":"Error describeTargetGroups for alb , err: ValidationError: You cannot describe more than '20' target groups at a time\n\tstatus code: 400, request id: 2fa1309b-0798-4038-bfa8-7f7a76a1c15f","time":"2021-02-03T18:02:52Z"}

I tried varying the period and length, still the same issue.

This for fetching metrics x-account, three roles configured.

v0.23.0-alpha

Note, issue went away after downgrading to v0.19.1-alpha

@private-double-v
Copy link

private-double-v commented May 19, 2022

Hi, my configuration gives me nothing, not even an error message in k8s pod.
When I applied this configuration the only metric Prometheus found is: aws_nlb_info
Tried on versions: v0.33.0-alpha and v0.35.0-alpha

    - type: nlb
      regions:
        eu-central-1
      length: 120
      period: 60
      addCloudwatchTimestamp: true
      searchTags:
        - key: service.k8s.aws/resource
          value: LoadBalancer
        - key: environment
          value: ${environment}
      customTags:
        - key: environment
          value: ${environment}
      metrics:
        - name: UnHealthyHostCount
          statistics: [Maximum]
        - name: HealthyHostCount
          statistics: [Maximum]
        - name: ActiveFlowCount
          statistics: [Maximum]
        ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants