About cost and utilization data

This document provides information about the source of App Optimize API cost and optimization data, how the data is categorized, and limitations on data availability.

Cost data

  • Source: Cost data is based on the same information that powers your Cloud Billing reports and exports.
  • Latency: Google Cloud products report usage and cost data to Cloud Billing processes at varying intervals. You might see a delay between your use of Google Cloud services and when the usage and costs are available to App Optimize API. Typically, costs are available within a day, but this can sometimes take more than 24 hours.
  • Gross costs: The costs shown are generally gross costs, reflecting usage at your contract prices before any credits, such as Committed Use Discounts, sustained use discounts, or promotional credits, are applied.
  • Currency: When scoping by an App Hub application, all underlying resources within that application must use the same currency for costs to be aggregated. If resources are linked to billing accounts with different currencies, cost data for that application might be incomplete.
  • Time range: The maximum time range for a report filter is 90 days before the current date. The start time must be within the 90-day time window.

Utilization data

  • Source: Utilization metrics are sourced from Cloud Monitoring.
  • Time range: The maximum time range for a report filter is 90 days before the current date. The start time must be within the 90-day time window. Cloud Run metrics are only available for six weeks before the current date.
  • Availability: Availability depends on the resource type and whether the appropriate agents (like the Ops Agent) are configured to collect detailed metrics.

Product categories

The product names used in App Optimize API are designed to be logical and user-friendly. These might group costs differently than the service categories used within Cloud Billing reports. For example, costs that App Optimize API attributes to "Compute Engine" might encompass multiple underlying services from a Cloud Billing perspective.

If costs are associated with a product that App Optimize API doesn't support, the product_display_name dimension is blank.

Resource-level costs

This section lists supported products with resource-level cost data.

App Hub doesn't support all resources that App Optimize API supports, and there are some limitations for reported costs. For details, see Application costs.

Product name Supported resources Additional information
AlloyDB for PostgreSQL Backup
Cluster
Instance
App Engine Service
Bigtable App Profile
Instance
Cloud Deploy Delivery pipeline
Cloud Run Job
Service
  • Utilization data for Cloud Run is available for the 6-week period before the current date.
Cloud Run functions Function
Compute Engine Allocation
Address
Disk
Forwarding rule
Global address
Image
Instance
Instant snapshot
Machine image
Managed instance group (MIG)
Network attachment
Reservation
Snapshot
Storage pool
Target VPN gateway
VPN gateway
VPN tunnel
  • Local storage costs are reported under the product Persistent Disk.
Google Kubernetes Engine Cluster
  • Resource cost includes Compute Engine VMs (vCPU, RAM, GPU) and the GKE cluster management fee.
  • Local storage costs are reported under the product Persistent Disk.
Dataflow Job
Snapshot
Cloud Data Fusion Instance
Dataproc Metastore Service
Firestore Database

Cloud Interconnect (Preview)

VLAN attachment

The resource cost includes the hourly cost of the VLAN attachment and the data transfer costs for the VLAN attachment.

Backup for GKE Backup plan

Cloud Load Balancing (Preview)

Forwarding rule
URL map

Data transfer and processing costs are not attributed to the resources that use the forwarding rule or URL map.
  • For forwarding rules, the cost includes the hourly cost of the forwarding rule plus any hourly charges for proxy instances.
  • For URL maps, the cost includes the hourly cost of all forwarding rules grouped under the URL map.
Cloud Logging Log bucket
Managed Service for Microsoft Active Directory Domain
Memorystore for Redis Instance
Secret Manager Secret
Spanner Instance
Database
Cloud SQL Admin API Instance
Cloud Storage Bucket

Application costs

For an App Hub application, the total cost includes all resources that are fully used by the application.

The following limitations apply to application costs:

  • This total application cost doesn't include costs for resources that are shared across applications such as VLAN attachments.
  • Application cost only includes costs for resources that are supported by App Hub and supported by App Optimize API.
  • When scoping by an App Hub application, all underlying application resources must use the same currency. If application resources are linked to billing accounts with different currencies, cost data for the application might be incomplete or not return.
  • You can't filter resources by location.
  • What's next