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] exportedTagsOnMetrics no longer works with latest version for lambda (0.61.2) #1520

Open
1 task done
paulsjohnson91 opened this issue Sep 5, 2024 · 1 comment
Open
1 task done
Labels
bug Something isn't working

Comments

@paulsjohnson91
Copy link

paulsjohnson91 commented Sep 5, 2024

Is there an existing issue for this?

  • I have searched the existing issues

YACE version

0.61.2

Config file

apiVersion: v1alpha1
sts-region: eu-central-1
discovery:
  exportedTagsOnMetrics:
    AWS/RDS:
      - Name
    AWS/Lambda:
      - Name
  jobs:
  - type: AWS/RDS
    regions:
      - eu-central-1
    searchTags:
      - key: inv_sub_env
        value: stable-int
    metrics:
      - name: AbortedClients
        statistics:
          - Maximum
          - Sum
          - Average
        period: 60
        length: 300

Current Behavior

yace crashes on startup

Expected Behavior

yace works as it did before and adds the tag name to the metrics.

I've tried with

  lambda:
    - Name

(which was working in an older version) and

  AWS/Lambda:
    - Name

which is the new version but yace crashes on startup for both

Steps To Reproduce

config:

apiVersion: v1alpha1
sts-region: eu-central-1
discovery:
  exportedTagsOnMetrics:
    AWS/RDS:
      - Name
    AWS/Lambda:
      - Name
  jobs:
  - type: AWS/RDS
    regions:
      - eu-central-1
    searchTags:
      - key: inv_sub_env
        value: stable-int
    metrics:
      - name: AbortedClients
        statistics:
          - Maximum
          - Sum
          - Average
        period: 60
        length: 300

service file

[Unit]
Description=Prometheus Yet Another Cloudwatch Exporter
After=network.target

[Service]
Type=simple
User=prometheus
Group=prometheus

ExecStart=/opt/prometheus/exporters/yace/yace -config.file /etc/prometheus/exporters/yace/config.yml -listen-address :5000 -enable-feature=max-dimensions-associator

SyslogIdentifier=prometheus_yace_exporter
Restart=always

[Install]
WantedBy=multi-user.target

Anything else?

Nothing else

@paulsjohnson91 paulsjohnson91 added the bug Something isn't working label Sep 5, 2024
@paulsjohnson91 paulsjohnson91 reopened this Sep 6, 2024
@paulsjohnson91
Copy link
Author

config works in version 0.58.0

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