-
Notifications
You must be signed in to change notification settings - Fork 898
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
Group chargeback report for VMs by tenant #17002
Group chargeback report for VMs by tenant #17002
Conversation
@lpichler Cannot apply the following label because they are not recognized: gaprindashvilli/yes |
@miq-bot add_label gaprindashvili/yes |
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.
d023b6e
to
71fea20
Compare
Checked commits lpichler/manageiq@3525cfc~...71fea20 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 |
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.
👍 Looks good!
…m_report_by_tenant Group chargeback report for VMs by tenant (cherry picked from commit 0d23948) https://bugzilla.redhat.com/show_bug.cgi?id=1552796
Gaprindashvili backport details:
|
Group by tenant for chargeback|metering Vm reports manageiq-ui-classic#3380
Add possibility for grouping chargeback reports by tenant. Row with tenant on report considers VMs related to the tenant.
Example:
report grouped by VMs (VM1,2 are from tenant T1)
then report grouped by Tenants (VM1,2 are from tenant T1)
Measure values and costs from VMs are summed up for their tenants on report group by tenant.
Report Result
[FROM UI PR] How to select group by tenant in report definition
Links
Group by tenant for chargeback|metering Vm reports manageiq-ui-classic#3380
@miq-bot assign @gtanzillo
@miq-bot add_label enhancement, gaprindashvilli/yes