kubecost / features-bugs

A public repository for filing of Kubecost feature requests and bugs. Please read the issue guidelines before filing an issue here.
0 stars 0 forks source link

[Bug] Cloud cost view not default sorted by total cost #7

Open dwbrown2 opened 11 months ago

dwbrown2 commented 11 months ago

Kubecost Version

106.2

Kubernetes Version

n/a

Kubernetes Platform

EKS

Description

Most other Kubecost views are sorted by total costs, but this particular view of cloud costs is not.

Steps to reproduce

  1. View this page and look at total cost: https://infra.kceng.dev/cloud?reportTitle=Cumulative+cost+for+last+60+days+by+item&window=60d&agg=item&context=W3sicHJvcGVydHkiOiJzZXJ2aWNlIiwidmFsdWUiOiJBbWF6b25FQzIiLCJuYW1lIjoiU2VydmljZSJ9XQ%3D%3D&filters=W10%3D&costMetric=AmortizedNetCost&selectedProviderId=&selectedItemName=

OR

  1. Visit https://infra.kceng.dev/cloud
  2. Drill into EC2 and view this page: https://infra.kceng.dev/cloud?reportTitle=Cumulative+cost+for+last+7+days+by+item&agg=item&context=W3sicHJvcGVydHkiOiJzZXJ2aWNlIiwidmFsdWUiOiJBbWF6b25FQzIiLCJuYW1lIjoiU2VydmljZSJ9XQ%3D%3D&filters=W10%3D

Expected behavior

Individual items sorted by descending cost.

Impact

Was confused how "costs could be $4k+ but then have the biggest item be $6" then saw that there were bigger items in the graph tool tip... thought there was a major data problem... and then realized that data wasn't sorted like in other views.

Screenshots

image

Logs

No response

Slack discussion

No response

Troubleshooting

teevans commented 11 months ago

Jira:https://kubecost.atlassian.net/browse/SELFHOST-831

dwbrown2 commented 1 month ago

@teevans I believe now fixed, let me know if more is needed!