Skip to content
This repository has been archived by the owner on Aug 7, 2020. It is now read-only.

Show total number of on-demand/reserved instances as a fraction #9

Open
matl33t opened this issue Jul 12, 2016 · 3 comments
Open

Show total number of on-demand/reserved instances as a fraction #9

matl33t opened this issue Jul 12, 2016 · 3 comments

Comments

@matl33t
Copy link

matl33t commented Jul 12, 2016

Currently, output for audit shows something like

Linux VPC us-east-1e m4.2xlarge: 0 <green>
Linux VPC us-east-1e m4.xlarge: -1 <yellow>
Linux us-east-1c c4.2xlarge: -4 <yellow>
Linux VPC us-east-1e t2.small: 2 <red>

I think perhaps it may be more informative to show it as a fraction of
{total_reserved}/{total on-demand}
rather than the difference between on-demand and reserved, like

Linux VPC us-east-1e m4.2xlarge: 12/12 <green>
Linux VPC us-east-1e m4.xlarge: 4/5 <yellow>
Linux us-east-1c c4.2xlarge: 3/7 <yellow>
Linux VPC us-east-1e t2.small: 8/6 <red>

Would you find this useful? If so, I don't mind doing the legwork for implementing this change.

@matl33t
Copy link
Author

matl33t commented Jul 14, 2016

Using some generated data, I was able to produce this output:
screen shot 2016-07-13 at 9 46 33 pm

where:
"Permanent" represents untagged instances (ones without no-reserved-instance
"Temporary" represents tagged instances (marked with no-reserved-instance)
"Unutilized" represents leftover reserved instances that are just burning money as they can't be associated with any running instance.

@bbergstrom
Copy link

👍

@emmahsax
Copy link

I love the look of this output! We should go ahead and try to implement it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants