kubecost / kubectl-cost

CLI for determining the cost of Kubernetes workloads
Apache License 2.0
913 stars 60 forks source link

Kubecost incorrectly calculates savings #96

Closed MarkSRobinson closed 2 years ago

MarkSRobinson commented 3 years ago

On the overview page, it reports my cluster as costing $42k/mo, but on /request-sizing.html it is reporting $225k/mo in potential savings when the window is 30 days and the profile is High Availability.

I think you're multiplying possible savings over a month by the number of days in the look-back window.

dwbrown2 commented 3 years ago

Hi Mark, would you be able to share what kubecost version? This sounds like you are hitting a new issue that was just addressed in our release candidate from last week -- https://github.com/kubecost/cost-analyzer-helm-chart/releases/tag/v1.82.0-rc.0

MarkSRobinson commented 3 years ago

@dwbrown2 gcr.io/kubecost1/cost-model:prod-1.81.0

dwbrown2 commented 3 years ago

This should be addressed in our two latest RC builds. You can grab these with this process: https://github.com/kubecost/docs/blob/master/release-process.md#release-candidate-rc-builds

Alternatively, these should be coming to production next week!

michaelmdresser commented 2 years ago

Hi @MarkSRobinson, are you still having this problem?

MarkSRobinson commented 2 years ago

I haven't upgraded to check if it's resolved. So let's close this issue and I'll open a new ticket if it persists when I eventually upgrade.