Installing and integrating Red Hat OpenShift Container Platform data into cost management
In this resource, we’ll begin the process of using cost management for Red Hat® OpenShift® by installing the OpenShift Cost Management Metrics Operator and integrating Red Hat OpenShift Container Platform (OCP) data into the tool.
What will you learn?
- Installing and configuring the Cost Management Metrics Operator
What do you need before starting?
Installing and integrating OCP data into cost management
In this resource, we’ll begin the process of using cost management for Red Hat OpenShift by installing the OpenShift Cost Management Metrics Operator and integrating Red Hat OpenShift Container Platform (OCP) data into the tool.
Confirm that your Azure Red Hat OpenShift cluster is ready from the Azure Portal.
Log in to the OpenShift Console.
Click Administrator > Operators > OperatorHub and search for “Cost Management Metrics Operator.”
Click the Cost Management Metrics Operator and click Install.
Under Installation mode, select “A specific namespace on the cluster.” Use the Operator-recommended namespace, costmanagement-metrics-operator, in the next section.
- Get your username and password for https://console.redhat.com/. We are going to create a secret and provide this information to the cost management operator.
Click Workloads > Secrets > Project: costmanagement-metrics-operator > Create Key/value secret.
- Fill in the following information:
- Secret name: basic-auth-secret
- Key/Value username: XXX (choose your own)
password: XXX (choose your own)
Click Administrator > Operators > Installed Operators and check the Cost Management Metrics Operator.
Create the CostManagementMetricsConfig instance.
- Update the following parameters:
source: create_source: false name: ‘’
source: create_source: true name: ‘cost-aro’ ##name should be unique
spec: authentication: type: token
spec: authentication: secret_name: basic-auth-secret type: basic
You are now ready to integrate Microsoft Azure data into the cost management service.