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

fix(gcp): Update cost calculation of PVC's to convert size to GiB #154

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

Pokom
Copy link
Contributor

@Pokom Pokom commented Apr 18, 2024

Adds a new method to Disks to convert the disk size from GB to GiB and implements unit tests for said method.
Updates documentation and metric name to clarify that the metric already takes into account the size and cost of the disk. Other metrics export the raw cost per hour.

This is largely necessary because the pricing from GCP is in GiB, but the disk's size is reported in GB.

Adds a new method to `Disks` to convert the disk size from GB to GiB and
implements unit tests for said method.
Updates documentation and metric name to clarify that the metric already
takes into account the size and cost of the disk. Other metrics export
the raw cost per hour.

- closes #153
@Pokom Pokom requested a review from the-it April 18, 2024 18:58
@Pokom Pokom changed the title fix(gcp): Update cost calculation of PVC's to use GiB fix(gcp): Update cost calculation of PVC's to convert size to GiB Apr 18, 2024
Copy link
Contributor

@paulajulve paulajulve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@Pokom Pokom merged commit ea1d557 into main Apr 19, 2024
1 check passed
@Pokom Pokom deleted the fix/pve-calculation branch April 19, 2024 15:04
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

Successfully merging this pull request may close these issues.

GCP: Persistent Volume Cost calculation incorrect
2 participants