Skip to content
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

Merged
merged 3 commits into from
May 6, 2021
Merged

Show overall efficiency #81

merged 3 commits into from
May 6, 2021

Conversation

michaelmdresser
Copy link
Contributor

Addresses #79

Tested locally against a GKE cluster.

Copy link
Contributor

@dwbrown2 dwbrown2 left a 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...

@@ -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",
Copy link
Contributor

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.

Copy link
Contributor Author

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."

Copy link
Contributor

@dwbrown2 dwbrown2 left a 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...

@@ -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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to "Cost Efficiency."

@michaelmdresser michaelmdresser merged commit ec08776 into main May 6, 2021
@michaelmdresser michaelmdresser deleted the mmd/total-efficiency branch May 6, 2021 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants