Preface
Install the Cost Management Metrics Operator and create an OpenShift Hybrid Cloud Console integration to view your OpenShift on-premise and cloud costs in cost management.
To use cost management with OpenShift so that you can view your OpenShift on-premise and cloud costs, you must create an OpenShift Hybrid Cloud Console integration and install the Cost Management Metrics Operator. The Cost Management Metrics Operator gathers usage, capacity, and request information from OpenShift Container Platform. You can configure the Cost Management Metrics Operator integration from the OpenShift Container Platform web console or from the command line interface (CLI). You can create an OpenShift integration in the Hybrid Cloud Console, in the OpenShift Container Platform web console, or from the CLI.
There are three ways to transfer data to Red Hat:
- Direct connection (default): You have a direct Internet connection to Red Hat.
- CMMO-specific proxy: The Cost Management Metrics Operator sends data to Red Hat by connecting to the Internet through a CMMO-specific proxy.
- Restricted network mode: the Cost Management Metrics Operator never connects to the Internet. Data is generated locally and a user must push it to Red Hat.
To collect data, cost management uses Prometheus queries that you can find in the source code.
Additional resources