kubecost / kubectl-cost

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

Change default window to 1d #89

Closed michaelmdresser closed 3 years ago

michaelmdresser commented 3 years ago

While "yesterday" is technically the most correct way to query exactly 1 day of data right now, it shows unexpected empty responses for users who have just installed Kubecost and have no data for yesterday. This introduces a better default experience for new users.

I chose 1d instead of today because today can seriously underreport if the time is just after UTC midnight. 1d will likely slightly overreport but that overreporting is temporary and will be automatically resolved by the release and deployment of hourly ETL.