-
Notifications
You must be signed in to change notification settings - Fork 898
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calculation for grouping rollups when max method is used
We have consumption blocks with set of metric rollups. This set belongs to the tenant. When we do max on this set we will get just max and it doesn't get max value for each VM. It should take max value for each VM and then sum these maxes. Example: (VM1 and VM1 are in one tenant TI) VM1: 2 Allocated Cores (Max) VM2: 3 Allocated Cores (Max) Report grouped bytenant: Tenant: 5 Allocated Cores (2 + 3 ) - is sum of maxes And costs are derived from this values. For avg: there is no such issue: VM1: 2 Allocated Cores (Avg) (Cores 3 MetricRollups: 1, 2, 3) VM2: 3 Allocated Cores (Avg)(Cores in 3 MetricRollups:2, 3, 4) Report grouped bytenant: Tenant: 5 Allocated Cores (2.5) (3 + 2) / 2 = 2.5 (1 + 2 + 3 + 2 + 3 + 4) = 2,5 It is same, AVG method don't have such issue.
- Loading branch information
Showing
4 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters