Skip to content

Commit

Permalink
[COST-5011] Update correlation to include OS disks. (#5095)
Browse files Browse the repository at this point in the history
  • Loading branch information
myersCody authored May 10, 2024
1 parent d972f0c commit 5e23153
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev/scripts/nise_ymls/ocp_on_azure/azure_static_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ generators:
end_date: {{end_date}}
meter_id: 55555555-4444-3333-2222-111111111120
resource_location: "US North Central"
instance_id: '/subscriptions/99999999-9999-9999-9999-999999999999/resourceGroups/koku-99hqd-rg/providers/Microsoft.Compute/disks/azure_compute1_OSDisk'
amount: 10
rate: 0.01
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@ SELECT azure.uuid as azure_uuid,
(azure.resource_id = ocp.node AND ocp.data_source = 'Pod')
OR
(strpos(azure.resource_id, ocp.persistentvolume) > 0 AND ocp.data_source = 'Storage')
OR
(LOWER(CONCAT(ocp.node, '_OSDisk')) = LOWER(azure.resource_id))
)
WHERE ocp.source = {{ocp_source_uuid}}
AND ocp.year = {{year}}
Expand Down

0 comments on commit 5e23153

Please sign in to comment.