kubecost / cost-analyzer-helm-chart

Kubecost helm chart
http://kubecost.com/install
Apache License 2.0
475 stars 415 forks source link

cluster-sizing fails when missing data for a single cluster, even if other clusters have data #1761

Closed jessegoodier closed 1 year ago

jessegoodier commented 1 year ago

Describe the bug
Note: I believe this is what is going on, but it is may be something else entirely. This is for a customer, but I am able to reproduce.

When kubecost doesn't find data for a cluster on the cluster-sizing, it does not allow ANY cluster to display.

Failed to compute cluster sizing recommendations
error getting cloud provider for cluster: xxx

For customers that already have multi-cluster aggregated metrics, this means that the page will not work until every single cluster has the kubecost installed.

Example: https://saas-monitoring.kubecost.cloud/cluster-sizing

To Reproduce
Steps to reproduce the behavior:

  1. Point kubecost at "thanos/cortex/ect" data that has "some" missing kubecost data
  2. Click on savings>cluster rightsizing
  3. See error

Expected behavior
Allow clusters with the required information to display.

Screenshots
If applicable, add screenshots to help explain your problem.

image

Collect logs (please complete the following information): har file uploaded here: https://kubecost.slack.com/archives/G01MN4R06MB/p1666702537083159

jessegoodier commented 1 year ago

closing as this is a duplicate of https://github.com/kubecost/kubecost-cost-model/issues/961