Repository navigation
feat(gcp): group billing export costs by billed resource - #15
Merged
Merged
Conversation
Map nullstone.io/resource to IFNULL(resource.global_name, resource.name) in the resource-level billing export and report HasResource in the GCP capabilities, so consumers that already fan out by resource (AWS Data Export) get the same grain for GCP. Rows with no resource group under an empty id, matching AWS. NUL-140
Go Tests109 tests 109 ✅ 0s ⏱️ Results for commit b70fa97. |
ssickles
approved these changes
Oct 14, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nullstone.io/resourcetoIFNULL(resource.global_name, resource.name)in the GCP resource-level billing export (gcp_billing_export_resource_v1_*, the only table the integration accepts). The full resource name plays the FOCUS ResourceId role; some services only populate the short name; rows with no resource group under an empty id, matching the AWS Data Export coster.HasResource: truein the GCP capabilities, so consumers that already fan out by resource when the source supports it (nullfire ingest, since NUL-156) get resource grain for GCP without further changes.Step 1 of the NUL-140 (Phase 3 untagged costs) split. Linear: https://linear.app/nullstone/issue/NUL-140
Test plan
go build ./...go test ./...greenresource_idon its line items