opencost / opencost

Cost monitoring for Kubernetes workloads and cloud costs
http://opencost.io
Apache License 2.0
5.28k stars 554 forks source link

Support Reserved Instance pricing for Azure #2043

Closed graemechristie closed 1 year ago

graemechristie commented 1 year ago

Can reserved instance pricing be implemented for Azure ?

Almost all of our AKS clusters run on reserved instances in Azure. Currently the pricing returned from Opencost is about %60 higher than the real cost we are paying and does not reflect reality in any meaningful way.

@AjayTripathy indicated this was done an in beta in this issue

However it appears not be the case looking at this code

Any information on when or if this is likely to be implemented would be greatly appreciated.

AjayTripathy commented 1 year ago

Hi @graemechristie currently only kubecost supports RI pricing and cloud integrations in general; we suggest the community edition of kubecost available at https://github.com/kubecost/cost-analyzer-helm-chart. We expect to have more details on how to support RIs on azure with opencost in the coming months.

kaitimmer commented 9 months ago

@AjayTripathy Are there any updates on this? I would still be interested in RIs on Azure with Opencost.

mattray commented 9 months ago

@kaitimmer have you configured customer-specific pricing? https://www.opencost.io/docs/configuration/azure#customer-specific-pricing

If that's not sufficient we'd need to do reconciliation of the CUR with the recorded results in Prometheus, which isn't currently available.

AjayTripathy commented 9 months ago

That being said, we'd take a PR on supporting RI estimates on Opencost, if the customer specific pricing isn't sufficient.