Getting started with cost management
Learn about and configure cost management
Chapter 1. Introduction to cost management
This document provides instructions to begin using cost management, including prerequisites and instructions for connecting your cloud environments, and configuring users and permissions.
After completing the setup described in this guide, you will be able to track cost and usage data for your Amazon Web Services (AWS), Microsoft Azure, Google Cloud, and OpenShift Container Platform environments.
If you have a suggestion for improving this guide or have found an error, please submit a Bugzilla report at http://bugzilla.redhat.com against Cloud Software Services (cloud.redhat.com) for the cost management component.
1.1. About cost management
Cost management is an OpenShift Container Platform service that enables you to better understand and track costs for clouds and containers. It is based on the upstream project Koku.
You can access the cost management application from console.redhat.com/openshift/cost-management/.
Cost management allows you to simplify management of resources and costs across various environments, including:
- Container platforms such as OpenShift Container Platform
- Public clouds such as Amazon Web Services (AWS), Google Cloud, and Microsoft Azure
The cost management application allows you to:
- Visualize, understand and analyze the use of resources and costs
- Forecast your future consumption and compare them with budgets
- Optimize resources and consumption
- Identify patterns of usage that should be investigated
- Integrate with third party tools that can benefit from cost and resourcing data
1.2. Planning for cost management
When configuring cost management for your needs, consider the scope of your environments that you want to manage costs for, and the users who will have access to the data.
Some considerations in creating a new Red Hat organization and users for different customer types include:
- Customer company wide
- Customer division or organization wide
- Partner company managing several tenants
- How does your business need the data? Do you want information about projects, or users, for example?
- Planning AWS tags to reflect previous use cases.
- Enforcement: Is there any way for you to ensure that the proper tags and metadata are included in each item of the inventory?
- What level of access do you want your users to have?
- Do you want some users to have access to all cost data, while other users can view only a portion of the environment or certain sources?
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.
Chapter 3. Using Cost Management
3.1. Use the Cost Explorer to visualize your costs
The cost management Cost Explorer allows you to create custom graphs of time-scaled cost and usage information to better visualize and interpret your costs.
See Visualizing your costs using Cost Explorer to learn more about:
- Using Cost Explorer to identify abnormal events.
- Understanding how your cost data changes over time.
- Creating custom bar charts of your cost and usage data.
- Exporting custom cost data tables.