Skip to content

Commit

Permalink
[COST-5738] Exclude usage rows from virtualization table (#5398)
Browse files Browse the repository at this point in the history
  • Loading branch information
myersCody authored Nov 26, 2024
1 parent a53b35f commit 452ea23
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,12 @@ WHERE usage_start >= {{start_date}}::date
AND namespace IS DISTINCT FROM 'Platform unallocated'
AND namespace IS DISTINCT FROM 'Network unattributed'
AND namespace IS DISTINCT FROM 'Storage unattributed'
AND (
COALESCE(cost_model_cpu_cost, 0)
+ COALESCE(cost_model_memory_cost, 0)
+ COALESCE(cost_model_volume_cost, 0)
+ COALESCE(distributed_cost, 0)
+ COALESCE(infrastructure_raw_cost, 0)
+ COALESCE(infrastructure_markup_cost, 0)) != 0
GROUP BY cluster_alias, cluster_id, namespace, latest.node_name, vm_name, cost_model_rate_type, latest.labels
;

0 comments on commit 452ea23

Please sign in to comment.