Skip to content

Data not accurate #36

@kirschem-fernride

Description

@kirschem-fernride

When comparing the data from the aws-cost-exporter to the Cost Explorer, there are some discrepancies.

I guess this is due to the fact, that the cost exporter always queries for the day before, on a given day. Let's say TODAY it queries for YESTERDAY.

The billing cycle for YESTERDAY ends at 23:59 UTC that day. It may take up to 24 hours for AWS to update the costs
(Source).

That means, the earliest point in time to get accurate data for YESTERDAY is TODAY at 23:59 UTC. If we don't poll at exactly this time, we either miss some data (if we poll earlier) or skip already to the next day (if we poll later).

Thus, I'd propose to change the logic (or at least make it configurable), to poll for TODAY - 2d instead of TODAY -1d.
Another option would be to enable a cron-based schedule instead of polling. This would be even more fitting given the AWS updating constraints outlined above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions