kube-opex-analytics icon indicating copy to clipboard operation
kube-opex-analytics copied to clipboard

Is there no way to have KOA_BILLING_HOURLY_RATE be dynamically updated as cluster usage increases and decreases using autoscaler?

Open alexmnyc opened this issue 3 years ago • 4 comments

Is there no way to have KOA_BILLING_HOURLY_RATE be dynamically updated as cluster usage increases and decreases using autoscaler?

alexmnyc avatar Jun 23 '21 19:06 alexmnyc

Hi @alexmnyc, Can we have more details about how you want to handle this setting dynamically?

Indeed, currently if you've deployed kube-opex-analytics through the helm chart as statefulset with a persistent volume, you just have to edit the KOA_BILLING_HOURLY_RATE parameter and the pod will be restarted with the new value.

rchakode avatar Jun 24 '21 08:06 rchakode

Not sure how one would calculate it. But isn't that what kubecost does?

The cluster cost coule be calculated using billing API perhaps, maybe use tagging api to look for a specific cluster tag for all resources and then calculate running cost at that minute interval or something. It obviously won't be a flat value over time as an autoscaled cluster will have more resources and then less based on load I suppose. It's more of a question how people go about using it with a dynamic size cluster

alexmnyc avatar Jun 24 '21 12:06 alexmnyc

I see the point, we'll consider it for a future version.

Thank you to have highlighted that.

rchakode avatar Jun 24 '21 19:06 rchakode

Feature in progress : see PR #62

rchakode avatar May 28 '22 11:05 rchakode