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, theproduct_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 |
|
| 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 |
|
| Google Kubernetes Engine | Cluster |
|
| 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 |
Data transfer and processing costs are not attributed to the resources
that use the forwarding rule or 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.
What's next
- Learn more about reports.