The Cost Explorer page lets you monitor and understand the costs and utilization of resources in your Google Cloud project or App Hub application. The Cost Explorer provides a current and historical visualization of cost data and utilization metrics, helping you make informed decisions about optimization opportunities.
For example, developers and platform administrators in your organization might use the Cost Explorer when they want to do the following:
Determine how costs have increased for the App Hub workload
cymbalin the last two weeks.Determine which resources in your Google Cloud project have high cost and low utilization.
Identify high-cost Compute Engine managed instance groups (MIGs) that have a low utilization within an application.
Gemini assistance is also available for optimizing costs and utilization. For more information, see Optimize costs with Gemini assistance.
This document is for developers and platform administrators. If you manage billing accounts or budgets in Cloud Billing, see the Cloud Billing cost optimization documentation, for information about using FinOps Hub and Gemini Cloud Assist in Cloud Billing.
Before you begin
The Cost Explorer uses Cloud Billing to retrieve cost data, and Cloud Monitoring for utilization metrics. To use the Cost Explorer, you need access to Monitoring data and configuration information, as well as the ability to view Cloud Billing data.
If you want to view cost data by App Hub application, then verify that you have set up App Hub and created your applications.
If you are only viewing cost data for a project, enable the App Optimize API. in the project.
In the Google Cloud console toolbar, select the project where you want to enable the API.
Enable the App Optimize API.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.
The Cost Explorer only supports applications managed in a folder configured for application management. It doesn't support applications in a host project or a single-project boundary.
Required roles
Using the Cost Explorer requires different permissions depending on whether you are viewing by project or by application.
View by project
To get the permissions that you need to view cost and utilization data for a project, ask your administrator to grant you the following IAM roles on the project:
-
Enable APIs:
Service Usage Admin (
roles/serviceusage.serviceUsageAdmin) -
View utilization data:
Monitoring Viewer (
roles/monitoring.viewer) -
View costs:
Cloud Hub Operator (
roles/cloudhub.operator) or a custom role with thebilling.resourceCosts.getpermission
If your administrator already granted you the Cloud Hub Operator (roles/cloudhub.operator)
role, then the Monitoring Viewer permissions are included in that role.
View by application
To get the permissions that you need to view cost and utilization data for an application, ask your administrator to grant you the following IAM roles on the management project for a folder:
-
View utilization data:
Monitoring Viewer (
roles/monitoring.viewer) -
View data for applications:
App Hub Viewer (
roles/apphub.viewer) -
View data in a folder:
Folder Viewer (
roles/resourcemanager.folderViewer)
View the Cost Explorer
To view the Cost Explorer, do the following:
-
In the Google Cloud console, go to the Cost Explorer page:
If you use the search bar to find this page, then select the result whose subheading is Monitoring.
Select the project or application that you want to view:
To view data for a project, select a project from the project picker at the top of the page.
To view data for an application, in the toolbar of the Google Cloud console, select the management project for a folder. Then, go to the toolbar of the Cost Explorer, and set the view to Application. If you don't know which project to select, ask your administrator.
You can also view cost and utilization data from the Optimization page in Cloud Hub. The Optimization page displays an overview of the data you see in the Cost Explorer, letting you identify trends at a glance. You can see total cost trends for your selected project or application, the top 5 resources by cost change, and the 5 most underutilized resources. In the Resources by cost and utilization section, you can further explore your cost and utilization data by clicking View details in Cost Explorer.
Explore your costs and utilization
The Cost Explorer lets you view only cost data, or cost data in tandem with utilization metrics.
You can filter the data presented by adjusting the time-range selector, where you can select 1 day, 7 days, 14 days, or 30 days.
Google Cloud products report usage and cost data to Cloud Billing processes at varying intervals. As a result, you might see a delay between your use of Google Cloud services and the usage and costs being available to view in the Cost Explorer. Typically, your costs are available within a day, but can sometimes take more than 24 hours.
Analyze by cost
The Cost summary for selected scope section of the Cost Explorer displays data about the total cost, total cost change, and total cost change by resource.
The total cost is based on usage in the selected project or application based on your contract prices, before any committed-use discounts (CUDs) or other credits are applied. For an application, the total cost includes all resources that are fully used by the application and excludes resources shared across applications.
The total cost table breaks down costs for supported products and resources.
- Network data transfer costs and Cloud Load Balancing data processing fees are shown separately from resource costs.
- Costs for local storage using Persistent Disk are shown under the product Persistent Disk.
Unsupported products are classified as Other in the Product column and unsupported resources are classified as Other in the Resource Type column.
For more information about cost and utilization data in the Cost Explorer, see About cost and utilization data.
Analyze by cost and utilization
For supported Google Cloud products, you can further explore costs in relation to resources in the Explore analyzed resources section.
This section lets you select a metric that aggregates cost and utilization, presenting a treemap that organizes cost by size, and utilization by color. For example, this section might be helpful in identifying resources that cost the most, while also having low CPU utilization in the last 30 days.
If you select the Aggregated cost, cost change metric, the Resource list table includes additional information.
What's next
- Use the App Optimize API to get cost and utilization data programmatically and integrate the data into your daily workflows.
- Explore opportunities for cost savings and optimization in FinOps hub.
- Perform in-depth cost analysis with Cloud Billing reports.
- Learn cost optimization best practices in the document Google Cloud Architecture Framework: Cost optimization.