Chapter 2. Configuring cost management
Before you begin to use cost management, you must complete these tasks to properly configure the cost management application:
2.1. Add sources to cost management
A source is a provider account that is connected to cost management to be monitored, for example, an OpenShift Container Platform deployment, or a cloud infrastructure provider. To use cost management to monitor your cloud costs, you must first connect a data source to the cost management application.
Currently, cost management can track costs for Amazon Web Services (AWS), Microsoft Azure, Google Cloud, and Red Hat OpenShift Container Platform sources.
From https://console.redhat.com/settings/sources, you can view, edit, and delete sources connected to cost management.
For more information on how to add sources to cost management, follow these guides:
2.2. Limit access to cost management resources
After adding and configuring sources in cost management, it is a good idea to limit access to cost data and resources. For example, you may not want users to have access to all cost data, but instead only data specific to their projects or organization. Using role-based access control, you can limit the visibility of resources involved in cost management reports. For example, you may want to restrict a user’s view to only AWS sources, instead of the entire environment.
For more information about limiting access see, Limiting access to cost management resources.
2.3. Configure tagging for your sources
The cost management application tracks cloud and infrastructure costs using tags (called labels in OpenShift), which you can refine to filter and attribute to resources. Tags in cost management allow you to organize your resources by cost and to allocate the costs to different parts of your cloud infrastructure.
Tags and labels can only be configured directly on a source. While you can choose what tags are activated in cost management, you cannot edit tags and labels in the cost management application.
See Managing cost data using tagging to learn more about:
- Planning your tagging strategy to organize your view of cost data.
- Understanding how cost management associates tags.
- Configuring tags and labels on your sources.
2.4. Configure cost models to accurately report costs
Now that you have configured your sources to collect cost and usage data into cost management, you can configure cost models to associate prices to metrics and usage, and fine-tune the costs of running your cloud.
A cost model is a framework used to define the calculations for the costs stored in cost management, using raw costs and metrics. Costs generated by a cost model can be recorded, categorized and distributed to specific customers, business units or projects.
From the Cost Models area of cost management, you can:
- Classify your costs as infrastructure or supplementary costs.
- Capture monthly costs for OpenShift nodes and clusters.
- Apply a markup to account for additional support costs.
- Learn how to configure a cost model in Using cost models.