grafana / cloudcost-exporter

Prometheus Exporter for Cloud Provider agnostic cost metrics
Apache License 2.0
66 stars 4 forks source link

Google Compute: Implement refresh for pricing map #56

Closed Pokom closed 11 months ago

Pokom commented 11 months ago

In the Google's Compute module, we do not implement refreshing the pricing map. Entrypoint is here: https://github.com/grafana/cloudcost-exporter/blob/main/pkg/google/compute/compute.go#L197

We should have some mechanism to refresh the pricing map. This should be configurable so that we can test our locally with a 1 minute configuration, and have a more reasonable 72hr refresh interval in production.