Skip to content

Commit 452ea23

Browse files
authored
[COST-5738] Exclude usage rows from virtualization table (#5398)
1 parent a53b35f commit 452ea23

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

koku/masu/database/sql/openshift/reporting_ocp_vm_summary_p.sql

+7
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,12 @@ WHERE usage_start >= {{start_date}}::date
8585
AND namespace IS DISTINCT FROM 'Platform unallocated'
8686
AND namespace IS DISTINCT FROM 'Network unattributed'
8787
AND namespace IS DISTINCT FROM 'Storage unattributed'
88+
AND (
89+
COALESCE(cost_model_cpu_cost, 0)
90+
+ COALESCE(cost_model_memory_cost, 0)
91+
+ COALESCE(cost_model_volume_cost, 0)
92+
+ COALESCE(distributed_cost, 0)
93+
+ COALESCE(infrastructure_raw_cost, 0)
94+
+ COALESCE(infrastructure_markup_cost, 0)) != 0
8895
GROUP BY cluster_alias, cluster_id, namespace, latest.node_name, vm_name, cost_model_rate_type, latest.labels
8996
;

0 commit comments

Comments
 (0)