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

Use delay to obtain accurate CloudFront requests metrics #1549

Open
1 task done
latelan opened this issue Oct 27, 2024 · 2 comments
Open
1 task done

Use delay to obtain accurate CloudFront requests metrics #1549

latelan opened this issue Oct 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@latelan
Copy link

latelan commented Oct 27, 2024

Is there an existing issue for this?

  • I have searched the existing issues

YACE version

0.61.2

Config file

apiVersion: v1alpha1
discovery:
  jobs:
    - type: AWS/CloudFront
      regions:
        - us-east-1
      roles:
        - roleArn: xxx
      searchTags:
        - key: Project
          value: cdn
      dimensionNameRequirements:
        - DistributionId
        - Region
      period: 60
      length: 60
      metrics:
        - name: Requests
          statistics: [Sum]

Current Behavior

There is an inconsistency between the data seen in YACE logs and the CloudFront console for the same point in time.
At 2024-10-27 12:24:00 UTC, YACE shows 11
image
while CloudFront console shows 16.
image

Expected Behavior

The data for both is consistent.

Steps To Reproduce

No response

Anything else?

No response

@latelan latelan added the bug Something isn't working label Oct 27, 2024
@latelan
Copy link
Author

latelan commented Oct 27, 2024

similar to the #1548

@latelan
Copy link
Author

latelan commented Oct 27, 2024

To find the root cause of the problem, I adjusted the period and length parameters, and noticed that the requests metric data settled down after two minutes.

logs with period: 60, length: 180
image

In the CloudFront requests metrics, the latest pushed data is unstable and takes some time to stabilize, which can also be observed in the console.
image
after a while.
image

Referr to the explanation #865, I add the parameter delay: 120, and obtain the stable data.

@latelan latelan changed the title [BUG] Inaccurate CloudFront Requests Metrics Use delay to obtain accurate CloudFront requests metrics Oct 27, 2024
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