-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show overall efficiency #81
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! This is great... I even like the idea of showing efficiency by default because it's so valuable! And then given users the option hide...
pkg/cmd/output.go
Outdated
@@ -108,6 +108,14 @@ func makeAllocationTable(allocationType string, allocations map[string]kubecost. | |||
AlignFooter: text.AlignRight, | |||
}) | |||
|
|||
if opts.showEfficiency { | |||
columnConfigs = append(columnConfigs, table.ColumnConfig{ | |||
Name: "Total Efficiency", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be "Cost" or "Spend" efficiency? I would want to highlight that this is not a straight utilization calculation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so. Changed to "Cost Efficiency."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! This is great... I even like the idea of showing efficiency by default because it's so valuable! And then given users the option hide...
pkg/cmd/output.go
Outdated
@@ -377,6 +397,14 @@ func makeAggregationRateTable(aggs map[string]query.Aggregation, rowTitles []str | |||
AlignFooter: text.AlignRight, | |||
}) | |||
|
|||
if opts.showEfficiency { | |||
columnConfigs = append(columnConfigs, table.ColumnConfig{ | |||
Name: "Monthly Efficiency", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to "Cost Efficiency."
Addresses #79
Tested locally against a GKE cluster.