grafana / cloudcost-exporter

Prometheus Exporter for Cloud Provider agnostic cost metrics
Apache License 2.0
30 stars 1 forks source link

GCP: Persistent Volume Cost calculation incorrect #153

Closed Pokom closed 5 months ago

Pokom commented 5 months ago

There's two problems right now with the implementation of persistent volumes for gcp:

  1. The metric is misleading: cloudcost_gcp_gke_persistent_volume_usd_per_gib_hour implies that it's the price per gib per hour, even though the metric already accounts for the cost
  2. The size of the disk is returned in GB and the price is listed in GiB

This is causing the prices to be off by ~7.12%.

image image