Track your VM products' associated consumption with labels

Many Google Cloud Marketplace products drive customer usage of Google Cloud infrastructure and resources. You can integrate labels into your products that give Google insights into your products' impact in terms of their associated customer Google Cloud usage, which Google can use to showcase impact and guide go to market (GTM) investments.

This document describes how to set up partner consumption tracking for virtual machine (VM) products that you offer through Cloud Marketplace.

Label schema

Labels are key-value pairs that you can assign to Google Cloud resources. For more information about labels, see the Overview of labels.

When you use labels for partner consumption tracking, your labels use the following format:

goog-partner-solution = SOLUTION_URN

Request a consumption tracking label

For each product that you offer through Cloud Marketplace, you must request a label and then integrate it into your product.

To request a label for your Cloud Marketplace product, complete the Partner Consumption Tracking Initiative form. After you complete the form, you receive an automated email with the label that you must integrate with your product.

Integrate the consumption tracking label with your VM product

To integrate the consumption tracking label with your VM product, you must use Terraform, an infrastructure-as-code tool created by HashiCorp, to set up your product to add the label to Google Cloud resources as it deploys them. For more information about Terraform, see What is Terraform in the Terraform documentation.

With Terraform, you can add a default label at the Google provider level that applies to all Google Cloud resources that Terraform deploys. For more information about using default labels with Terraform, see the Google Cloud Provider Configuration Reference in the Terraform documentation.