How to use attributions to create custom metrics to track and report on KPIs for your cloud
Custom metrics allows customers to calculate metrics based on existing attributions within the CMP. Often when reporting on cost and usage for cloud environments the dimensions and metrics in your bill are not sufficient to understand key information. By creating formulas with portions of the bill key indicators of performance can be surfaced more cleanly.
Percentage of GCP CUD utilized
CUD (committed use discount) Usage / CUD (committed use discount) Commitment
Amortized Instance Reservation Consumption
Monthly Ec2 Instance type usage / (1 yr Reserved Instance type commitment / 12)
Percentage Shared Infrastructure Cost
Shared Infrastructure costs / Total Infrastructure Cost
Custom metrics can be particularly useful when tracking consumption of shared services. Determine what percentage of shared infrastructure is being used by a single app. Determine distribution of compute types across a set of accounts or projects.
Structure of a Metric
Custom metrics are created by creating formula's with Attributions. Each Attribution must have a base metric selected for it. This can either be: Cost, Usage, or Savings.