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.This is largely necessary because the pricing from GCP is in GiB, but the disk's size is reported in GB.