Analyzing your cost data
Use cost management to track the cost of your clouds and containers.
Abstract
Preface Copy linkLink copied to clipboard!
To begin using cost management, you must have set up cost management by connecting your cost data. For more information, see How to set up cost management.
Chapter 1. Using cost management currency exchange Copy linkLink copied to clipboard!
Cost management uses the United States Dollar (USD) by default. However, you can use the cost management currency exchange feature to estimate your costs in your local currency. This feature updates costs both in Red Hat Hybrid Cloud Console and in your exported cost report files.
Cost management updates currency exchange information daily with the most recent data from ExchangeRate-API. The values in cost management do not reflect any foreign currency contract agreements.
Procedure
- From Red Hat Hybrid Cloud Console go to cost management.
- From the currency dropdown, select your local currency.
After you change your currency, cost management automatically updates all values with the most recent exchange rates.
Chapter 2. Calculating effective usage with cost models Copy linkLink copied to clipboard!
Cloud providers charge for the infrastructure costs of running a cluster, regardless of your overall usage. By calculating the effective usage in cost management, you can more accurately correlate cloud costs with a pod or namespace by considering their direct utilization.
A pod typically requests resources, such as CPU or memory, from a cluster. The cluster then reserves these requested resources as a minimum, but the pod might use more or less than it initially requested. The effective usage metric in cost management uses whichever kind of usage, CPU or memory, is greater per hour.
You can create a cost model in cost management to estimate your effective usage. Ultimately, you can use this data to understand how infrastructure cost is distributed to your OpenShift project.
Prerequisites
- You must be a user with Cost Administrator or Cost Price List Administrator permissions. To learn how to configure user roles, see Limiting access to cost management resources.
- You must add your OpenShift cluster as a cost management data integration. For more details, see Integrating OpenShift Container Platform data into cost management in Getting started with cost management.
Procedure
- Log in to Red Hat Hybrid Cloud Console.
- From the Services menu, click → .
- In the Global Navigation, click → .
- In the Cost Models tab, click to open the cost model wizard.
- Enter a name and description for the cost model and select OpenShift Container Platform as the integration type. Click .
Create a price list so that you can assign rates to usage or requests. The cost management service collects these metrics from OpenShift but there is no cost attached to them in cost management until you apply a cost model.
To create a price list to calculate effective CPU usage, click .
-
Add a description. In this example, enter
effective cpu usage. - In the Metric field, select CPU.
- In the Measurement field, select Effective-usage (core-hours).
-
In the Rate field, enter the rate you pay for CPU usage. In this example, enter
2. Click .
-
Add a description. In this example, enter
To create a price list to calculate effective memory usage, click .
-
Add a description. In this example, enter
effective memory usage. - In the Metric field, select Memory.
- In the Measurement field, select Effective-usage (GiB-hours).
-
In the Rate field, enter the rate you pay for memory usage. In this example, enter
1. Click .
-
Add a description. In this example, enter
- Click .
- (Optional) On the Cost calculations page, apply a markup or discount to change how raw costs are calculated for your integrations. Adding a markup to your raw costs can allow you to account for your overhead costs, such as the cost of administering your AWS account, Azure subscription, or other support costs. A markup is an estimation to cover your costs not shown by metrics or usage.
- On the Cost distribution page, select the CPU or Memory distribution type. The distribution type distributes costs based on CPU or memory metrics in project cost breakdowns. If your cluster has high memory usage, select Memory. If your cluster has high CPU usage, select CPU. Click .
- Assign an integration to your cost model and then click .
- Review the details and then click .
- To review the results of your cost model on a integration, in the Global Navigation, click → .
- Select a project and view the results.
You cannot log in to the Red Hat Hybrid Cloud Console with your email unless your email is your Red Hat login. For more information, see Finding your login.
Chapter 3. Getting information about your clusters and data Copy linkLink copied to clipboard!
In the Cluster information page of cost management, you can view information like the status of your integration, the time of data retrieval, and links to each integration. You can also pause and resume integrations.
3.1. Getting information about your cluster Copy linkLink copied to clipboard!
- Navigate to cost management > OpenShift.
- In the Group by drop-down, select Cluster.
- Select the cluster that you want to view. An OpenShift cluster details page opens.
- At the top of the page, click the hyperlink Cluster information.
The Cluster information page provides the following details:
- Cluster ID
- The cost management operator version and if any updates are available
- The Red Hat integration (the integration for your cluster)
- Your Cloud integration
If you are running a cluster on-premise or if you did not add a cloud integration for your cluster, you won’t see a value in Cloud integration.
3.2. Getting information about your data Copy linkLink copied to clipboard!
- Navigate to cost management > OpenShift.
- In the Group by drop-down, select Cluster.
- Select the cluster that you want to view. An OpenShift cluster details page opens.
- At the top of the page, click the hyperlink Data details.
There are three sections that give you details about your cloud data, cluster data, and about cost management data:
Cloud integration status or Red Hat integration status
- Provides a link to your integrations.
Data availability
- For Cloud data, a timestamp refers to the last time that cost management checked for an available report.
Data retrieval
- For Cloud data, a timestamp refers to when cost management retrieved your data from the cloud provider.
- For Cluster data, a timestamp refers to when cost management retrieved your data from the ingress service that the operator uploads it to.
Data processing
- This timestamp refers to when cost management unpacked the reports, put them in the database, and made them available with the API.
Data integration and finalization
- For cost management data, a timestamp refers to when cost management correlated the raw billing data from your cloud with your cluster metrics, and then applied any cost model rates against your metrics.
3.3. Pausing or resuming an integration Copy linkLink copied to clipboard!
- In the Integrations section of console.redhat.com Settings, choose an integration that you want to pause or resume.
-
On the row of the integration that you want to pause or resume, click the more options menu
.
- Verify that Cloud integration status has either a pause icon or a green checkmark. It can take a couple seconds for it to load.
Chapter 4. Verifying the status of cost calculations Copy linkLink copied to clipboard!
You can view the cost data upload status for each of your cost model integrations and view the date and time that the data was last updated so that you can accurately track cost estimates.
Prerequisites
- You are a user with either the Cost Administrator role or the Cost Cloud Viewer or Cost OpenShift Viewer role, depending whether you want to verify data on OpenShift or cloud integrations. To learn how to configure user roles, see Limiting access to cost management resources.
Procedure
- Log in to the Red Hat Hybrid Cloud Console.
Navigate to one of the following cost management pages:
- Red Hat OpenShift > Cluster Management > Cost Management > OpenShift
- Red Hat OpenShift > Cluster Management > Cost Management > Amazon Web Services
- Red Hat OpenShift > Cluster Management > Cost Management > Google Cloud
Red Hat OpenShift > Cluster Management > Cost Management > Microsoft Azure
The integrations status summary is displayed at the top of the page. A green circle indicates the number of integrations that have the status Complete and have received cost data. A yellow triangle indicates the number of integrations that have the status Incomplete and have not received cost data.
- To view the Integrations status page, click View all next to Integrations status. A list of your integrations with the status of the cost data and the last time and date that the data was updated is displayed.
- Click Data details next to any integration. The Integrations details window opens. This window provides a breakdown of the overall cost data status into different components.
- Review the time and date stamps.
- If any component has a paused or incomplete status, or a complete status but has a time stamp that is over two weeks old, open a Red Hat support case at Help > Open a support case.
Chapter 5. Configuring cost management notifications Copy linkLink copied to clipboard!
The Red Hat Hybrid Cloud Console notifications service can automatically alert you to potential issues with cost management. Notification administrators can configure notifications for your organization from the Notifications menu on the Red Hat Hybrid Cloud Console Settings page.
To set up a notification integration, go to Configuring notifications and integrations on the Red Hat Hybrid Cloud Console. After you set up the notification type, select the type of event you want Red Hat Hybrid Cloud Console to notify you about. For cost management, you can create the following types of notification events.
- Availability status
- Your cloud integration stopped sending data. Check that your integration is set up correctly. Refer to the cost management integration documentation for your cloud provider.
- Missing OpenShift Container Platform Cost Model
- You did not configure a cost model for an OpenShift Container Platform integration. You must configure a cost model for your OpenShift Container Platform integrations to accurately calculate your organization’s costs.
- CM Operator Stale Data
- The data received from the Cost Management Metrics Operator is stale. Cost management uses this data to calculate costs for your integrations. When this data is stale, the cost management service does not calculate your organization’s most recent costs.
Chapter 6. Viewing costs associated with virtual machines Copy linkLink copied to clipboard!
With support for tracking Red Hat OpenShift Virtualization, you can view costs that are directly associated with virtual machines (VMs) running on your OpenShift clusters.
Cost management gathers information about each VM that is running on OpenShift and associates costs to it at a monthly aggregate level. The API endpoint is /api/cost-management/v1/reports/openshift/resources/virtual-machines/.
To find your Red Hat OpenShift Virtualization data, complete the following steps:
- In cost management, navigate to a specific cluster, node, or project.
- Click the Virtualization tab on the OpenShift details page.
To learn about Red Hat OpenShift Virtualization, see Virtualization.
Providing feedback on Red Hat documentation Copy linkLink copied to clipboard!
We appreciate and prioritize your feedback regarding our documentation. Provide as much detail as possible, so that your request can be quickly addressed.
Prerequisites
- You are logged in to the Red Hat Customer Portal.
Procedure
To provide feedback, perform the following steps:
- Click the following link: Create Issue.
- Describe the issue or enhancement in the Summary text box.
- Provide details about the issue or requested enhancement in the Description text box.
- Type your name in the Reporter text box.
- Click the Create button.
This action creates a documentation ticket and routes it to the appropriate documentation team. Thank you for taking the time to provide feedback.