Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 1. Using Cost Explorer
The cost management Cost Explorer, allows you to see your costs through time. Using the Cost Explorer, you can now filter through your expenditure to find answers to your questions, see details, and look for trends in data.
1.1. Understanding Cost Explorer
The cost management Cost Explorer allows you to create custom graphs containing up to 90 days of cost and usage information to better visualize and interpret your costs.
With Cost Explorer you can:
- Identify abnormal events.
- Understand how you cost data changes over time.
- Create custom bar charts of your cost and usage data.
- Export custom cost data files.
Figure 1.1. The Cost Explorer Interface
![Cost explorer in cost management with an all openshift graph](https://access.redhat.com/webassets/avalon/d/Cost_Management_Service-1-latest-Visualizing_your_costs_using_cost_explorer-en-US/images/4e8653c5275d6a1b24cad1cbd303af8a/cost-explorer.png)
A single bar in the Cost Explorer chart represents one day of cost and usage data corresponding to the filtered options. The five most significant metrics are individually displayed and all other metrics placed into the Others category. See Section 1.2, “Filtering cost data with Cost Explorer” for more information about filtering your cost and usage data.
1.1.1. Cost of unallocated resources in an OpenShift cluster
Unallocated costs are visible when viewing OpenShift cost data grouped by project. Rows named Platform unallocated and Worker unallocated are available when viewing OpenShift cost data by project.
- Platform unallocated costs
- The costs for parts of primary and infrastructure nodes that are not allocated to run workloads. In this case, those workloads are the OpenShift platform or control plane.
- Worker unallocated costs
- The costs that represent any unused part of your worker node’s usage and request capacity.
1.2. Filtering cost data with Cost Explorer
You can customize the cost data that appears by using the filter options in the Cost Explorer.
Prerequisites
- You must have your OpenShift cluster OpenShift cluster added as a cost management data integration. For instructions see Integrating OpenShift Container Platform data into cost management.
- You must have your cloud infrastructure account added as a cost management data integration. For instructions for your cloud provider type see Adding integrations to cost management.
Procedure
- From the Cost Explorer, select an item from the Perspective menu. For example, to view your cumulative OpenShift Container Platform costs, select All OpenShift Cost.
- Select a grouping. Depending on your cloud provider you can group by Project, Node, Cluster, or Tag.
- Specify one or more Projects, Nodes, Clusters, or Tags by name.
- Select Last 90 days to view the cost data from the previous 90 days.
Next Steps
After filtering your data, you can export it into a CSV file. See Section 1.3, “Exporting cost data” for more information.
1.2.1. Tracking the cost of ROSA
You can track expenses associated with Red Hat OpenShift Service on AWS (ROSA) with Cost Explorer. To find costs associated with ROSA, filter the costs in Cost Explorer and view them grouped by services.
On Cost Explorer or AWS details page, view ROSA costs on the Amazon Web Service Filtered by OpenShift view by grouping by service and looking for virtual machine licenses.
Procedure
- In cost management, go to the Cost Explorer page.
- On the Cost Explorer page, in the Perspective menu, select Amazon Web Services filtered by OpenShift.
- In the Group by field, select Service.
- In the results, find the Red Hat OpenShift Service on AWS.
Next Steps
After you filter your data, you can export it into a CSV file. See Section 1.3, “Exporting cost data” for more information.
1.2.2. Tracking the cost of ARO in OpenShift
You can track expenses associated with Microsoft Azure Red Hat OpenShift (ARO) when you calculate the cost of OpenShift for Microsoft Azure. To find costs associated with ARO, filter the costs in Cost Explorer and view them grouped by services.
The overall service cost includes all virtual machine license fees on the underlying nodes. For example, if the node is also running Red Hat Enterprise Linux, the specific cost of running ARO is included.
Procedure
- In cost management, go to the Cost Explorer page.
- On the Cost Explorer page, in the Perspective menu, select Microsoft Azure filtered by OpenShift.
- In the Group by field, select Service.
- In the results, search for the virtual machine licences. The service cost includes all of the virtual machine licences fees on each node.
Next Steps
After you filter your data, you can export it into a CSV file. See Section 1.3, “Exporting cost data” for more information.
1.3. Exporting cost data
Use the Cost Explorer to export customized CSV files of cost data to your local workstation. These files contain more details about your cost data that you can apply in your desired reporting tool.
Prerequisites
- Your OpenShift cluster added as a cost management data integration. See Integrating OpenShift Container Platform data into cost management for instructions.
- Your cloud infrastructure account added as a cost management data integration. See Adding integrations to cost management for instructions for your cloud provider type.
Procedure
- Navigate to the Cost Explorer application.
- Use the Cost Explorer filter options to create the desired information.
- Select items to be exported in the list populated below the Cost Explorer graph.
-
Click the
Export button.
Click Generate and Download.
The CSV file will download to your local system.