Skip to content

[BUG] YACE doesn't send anything when it restarts on NIL values #1627

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
afreyermuth98 opened this issue Jan 28, 2025 · 1 comment
Open
1 task done
Labels
bug Something isn't working

Comments

@afreyermuth98
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

YACE version

0.60.0

Config file

No response

Current Behavior

I'm using YACE to export my cloudwatch metrics including AWS/ApplicationELB where I set nilToZero to get output even when there is no value in cloudwatch.
I'm checking the metric HTTPCode_ELB_5XX_Count. My metric is null for looooonnng time so I'm getting 0 in my prometheus values but it seems that when YACE restarts, it's losing his state and so as he has never seen this metric != null it does not send it anymore.

Expected Behavior

The expected behaviour is that on restarts, the exporter continues to send 0

Steps To Reproduce

Have an ELB with a value that is always nil.
Have this in your config file

- type: "AWS/ApplicationELB"
    regions:
      - YOUR_REGION
    period: 60
    length: 300
    delay: 30
    addCloudwatchTimestamp: false
    includeContextOnInfoMetrics: true
    searchTags:
      - key: Name
        value: .*
    metrics:
      - name: HTTPCode_ELB_5XX_Count
        statistics:
          - Sum
        nilToZero: true

When you have zero for long time (or not ? didn't try), restart your exporter and see that you do not have value anymore

Anything else?

No response

@afreyermuth98 afreyermuth98 added the bug Something isn't working label Jan 28, 2025
@andygeorge
Copy link

I seem to be having this issue as well when adding ELB metrics (eg HTTPCode_ELB_500_Count etc).

discovery:
  jobs:
    - type: AWS/ApplicationELB
      regions: 
        - YOUR_REGION
      metrics:
        - name: HTTPCode_ELB_5XX_Count # existing metric, we get a 0 back
          statistics: [ Sum ]
          period: 60
          length: 300
          nilToZero: true
        - name: HTTPCode_ELB_500_Count # new metric, YACE doesn't show it
          statistics: [ Sum ]
          period: 60
          length: 300
          nilToZero: true

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

2 participants