Changed the way the instance usage is calculated.
In order to get a more precise usage of the instances we switched to using the 'cpu_util' measures provided by gnocchi instead of simply looking at the 'started_at' and 'ended_at' dates. Besides providing more granularity to the usage, using this metric also allows taking into consideration periods of time when the instance wasn't powered on.
Showing
- admin-costs-plugin/garr_costs/content/costs/utils.py 3 additions, 5 deletionsadmin-costs-plugin/garr_costs/content/costs/utils.py
- admin-costs-plugin/garr_costs/content/costs/views.py 1 addition, 1 deletionadmin-costs-plugin/garr_costs/content/costs/views.py
- costs-plugin/garr_costs/content/costs/utils.py 3 additions, 5 deletionscosts-plugin/garr_costs/content/costs/utils.py
- costs-plugin/garr_costs/content/costs/views.py 1 addition, 1 deletioncosts-plugin/garr_costs/content/costs/views.py
Loading
Please register or sign in to comment