许多 Google Cloud Marketplace 产品都可以推动客户使用 Google Cloud基础设施和资源。您可以将标签集成到产品中,以便 Google 了解产品在相关客户 Google Cloud 使用方面的影响,Google 可以利用这些信息来展示影响并指导市场推广 (GTM) 投资。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-11。"],[],[],null,["# Track your VM products' associated consumption with labels\n\nMany Google Cloud Marketplace products drive customer usage of Google Cloud\ninfrastructure and resources. You can integrate labels into your products that\ngive Google insights into your products' impact in terms of their associated\ncustomer Google Cloud usage, which Google can use to showcase impact and\nguide go to market (GTM) investments.\n\nThis document describes how to set up partner consumption tracking for virtual\nmachine (VM) products that you offer through Cloud Marketplace.\n\nLabel schema\n------------\n\nLabels are key-value pairs that you can assign to Google Cloud resources.\nFor more information about labels, see the\n[Overview of labels](/resource-manager/docs/labels-overview).\n\nWhen you use labels for partner consumption tracking, your labels use the\nfollowing format: \n\n goog-partner-solution = \u003cvar translate=\"no\"\u003eSOLUTION_URN\u003c/var\u003e\n\n### Find your product's consumption tracking label\n\nFor each product that you offer through Cloud Marketplace, you can find its\nassociated consumption tracking label in Producer Portal. To find the\nlabel, take the following steps:\n\n1. In Producer Portal, visit the **Overview** page.\n2. In the list of your products, find the product whose consumption you want to track.\n3. Copy and save the value listed for **Consumption tracking label**.\n4. When you integrate your product's consumption tracking, use the consumption tracking label that you saved.\n\nThe direct link to the Producer Portal **Overview** page is: \n\n```\nhttps://console.cloud.google.com/producer-portal?project=YOUR_PROJECT_ID\n```\n\nIntegrate the consumption tracking label with your VM product\n-------------------------------------------------------------\n\nTo integrate the consumption tracking label with your VM product, you must use\nTerraform, an infrastructure-as-code tool created by HashiCorp, to set up your\nproduct to add the label to Google Cloud resources as it deploys them. For\nmore information about Terraform, see\n[What is Terraform](https://developer.hashicorp.com/terraform/intro) in the\nTerraform documentation.\n| **Note:** Your product must add the label at the resource level, instead of at the project level.\n\nWith Terraform, you can add a default label at the Google provider level that\napplies to all Google Cloud resources that Terraform deploys. For more\ninformation about using default labels with Terraform, see the\n[Google Cloud Provider Configuration Reference](https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/provider_reference#default_labels)\nin the Terraform documentation."]]