Integrating OpenShift Container Platform data into cost management
Learn how to add and configure your OpenShift Container Platform integrations
Abstract
Chapter 1. Creating an OpenShift Container Platform integration Copy linkLink copied to clipboard!
1.1. Installation tasks summary Copy linkLink copied to clipboard!
The Cost Management Metrics Operator gathers data from OpenShift Container Platform for cost management. Install the Cost Management Metrics Operator on your OpenShift Container Platform instance as part of installing cost management. When you have finished installing cost management, visit cost management to view your cost data.
Operator installation, configuration, and integration management can all be performed from the OpenShift Container Platform web console.
To install and configure Cost Management Metrics Operator from the OpenShift Container Platform web console, you must use an account with cluster administrator privileges.
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.
Prerequisites
- The OpenShift Container Platform cluster is installed.
- You can access the OpenShift Container Platform web console using an account that has cluster administrator privileges.
- You can access Red Hat Hybrid Cloud Console with the correct privileges for the cost management service. See, Limiting access to cost management resources for more information.
Perform the following tasks to install the Cost Management Metrics Operator and begin using the cost management application in OpenShift Container Platform:
Task summary
-
Install the Cost Management Metrics Operator (
costmanagement-metrics-operator) and use the default token authentication. -
Create a CostManagementMetricsConfig YAML file that configures
costmanagement-metrics-operator - Create a cost management OpenShift Container Platform integration with a new installation, or confirm an existing integration with a replacement installation.
If you do not use token authentication, you must take additional steps to configure the secret that holds the client_id and client_secret credentials for your service account from Red Hat Hybrid Cloud Console. For more information, see Configuring service account authentication for the cost management metrics operator in Integrating OpenShift Container Platform data into cost management.
1.2. Installing the cost operator by using OperatorHub Copy linkLink copied to clipboard!
Learn how to install the Cost Management Metrics Operator from the OpenShift Container Platform web console.
Prerequisites
- You logged in to the OpenShift Container Platform web console and have cluster administrator privileges.
Procedure
- Log in to the OpenShift Container Platform web console and click → .
- Click Cost Management Metrics Operator.
-
When the Install Operator window appears, select the
costmanagement-metrics-operatornamespace. If the namespace does not exist, we create it for you. - Click . After a short wait, Cost Management Metrics Operator appears in the Installed Operators tab under Project: all projects or Project: costmanagement-metrics-operator.
If a proxy with a custom CA certificate, you must create additional configurations to inject this certificate into Cost Management Metrics Operator. For more details, see Injecting a custom CA certificate in the OpenShift Container Platform documentation.
1.3. Optional: Installing the cost management operator by using the CLI Copy linkLink copied to clipboard!
If you are automating cluster creation, you can optionally install the Cost Management Metrics Operator by using the OpenShift CLI instead of OperatorHub. In the OpenShift Container Platform CLI, you can create an integration for your OpenShift Container Platform cluster in cost management. If you use service authentication, you must configure your Operator to use it.
Prerequisites
-
You installed the OpenShift CLI,
oc. - You have cluster administrator privileges for your OpenShift Container Platform cluster.
Procedure
To verify the package manifests have the supported install modes and available channels, enter the following command:
oc describe packagemanifests costmanagement-metrics-operator -n openshift-marketplaceCreate an
OperatorGroupobject and a subscription object.- To create a subscription object, see the OpenShift documentation Installing from OperatorHub using the CLI.
If you are not using token authentication, configure your Operator to use service account authorization. To use this method, add your service account to a User Access Group that has a Cloud Administrator role. Ensure the service account inherits the permissions of the user group.
For more information, see Limiting access to cost managment resources.
-
Retrieve your
client_idandclient_secretfrom the Red Hat Hybrid Cloud Console service account. Encode the value of your service account’s
client_idin base64. In your terminal, enter:echo -n "<red_hat_service_account_client_id>" | base64Encode the value of your service account’s `client_secret`in base64. In your terminal, enter:
echo -n "<red_hat_service_account_client_secret>" | base64
-
Retrieve your
Create a YAML file to store your secrets. Paste the
client_idandclient_secretin thedata.client_idanddata.client_secretfields.Example.yaml
kind: Secret apiVersion: v1 metadata: name: service-account-auth-secret namespace: costmanagement-metrics-operator data: client_id: <base64_encoded_red_hat_service_account_client_id> client_secret: <base64_encoded_red_hat_service_account_client_secret>Deploy your secret YAML file with the following command:
oc apply -f example.yaml
To use service authentication for the cost management Operator, edit the custom resource definition for the Operator. You must edit the custom resource example YAML so that
authentication.typeis set toservice-account. You must also add a line so thatauthentication.secret_nameis set to the name of your secret. In this earlier example, the name of the secret isservice-account-auth-secret.Custom resource example
kind: CostManagementMetricsConfig apiVersion: costmanagement-metrics-cfg.openshift.io/v1beta1 metadata: name: costmanagementmetricscfg-sample-v1beta1 namespace: costmanagement-metrics-operator spec: authentication: type: service-account secret_name: service-account-auth-secret packaging: max_reports_to_store: 30 max_size_MB: 100 prometheus_config: collect_previous_data: true context_timeout: 120 disable_metrics_collection_cost_management: false disable_metrics_collection_resource_optimization: false source: check_cycle: 1440 create_source: false name: '' upload: upload_cycle: 360 upload_toggle: trueTo create an integration automatically without using the wizard in Red Hat Hybrid Cloud Console, edit the custom resource example YAML so that
source.create_sourceis set totrueandsource.nameis set to a name. In this example, the name is set tocluster2.Source creation example
kind: CostManagementMetricsConfig apiVersion: costmanagement-metrics-cfg.openshift.io/v1beta1 metadata: name: costmanagementmetricscfg-sample-v1beta1 namespace: costmanagement-metrics-operator spec: authentication: type: service-account secret_name: service-account-auth-secret packaging: max_reports_to_store: 30 max_size_MB: 100 prometheus_config: collect_previous_data: true context_timeout: 120 disable_metrics_collection_cost_management: false disable_metrics_collection_resource_optimization: false source: check_cycle: 1440 create_source: true name: 'cluster2' upload: upload_cycle: 360 upload_toggle: true
If a proxy with a custom CA certificate, you must create additional configurations to inject this certificate into Cost Management Metrics Operator. For more details, see Injecting a custom CA certificate in the OpenShift Container Platform documentation.
1.4. Configuring the operator instance Copy linkLink copied to clipboard!
After you install the costmanagement-metrics-operator instance, you can configure it in the OpenShift Container Platform web console.
Prerequisites
- You logged in to the OpenShift Container Platform web console and have cluster administrator privileges.
- Cost Management Metrics Operator appears in the Installed Operators tab.
Procedure
- From Name in the list of installed operators, click Cost Management Metrics Operator. An → window appears.
- From Details, click + Create Instance. An → window appears.
- Select YAML view to view and modify the contents of the YAML configuration file.
Create a cost management instance for the Cost Management Metrics Operator by editing the following two lines in the YAML file:
create_source: false name: ''Change
falsetotrue.- If you want to edit other configurations, see Configurable parameters.
Change
''to the name of your integration. If you do not provide a name, the operator defaults to the cluster ID.Example
create_source: true name: my-openshift-cost-source
- Click .
1.5. Troubleshooting issues with your Cost Management Operator Copy linkLink copied to clipboard!
Troubleshoot problems that might occur when you install the Cost Management Operator.
1.5.1. Verify the YAML file is propery configured Copy linkLink copied to clipboard!
To verify that the cost management operator is functioning correctly, check that your YAML file is properly configured.
Prerequisites
- You have access to the OpenShift Container Platform web console.
- You can view the content in the Installed Operators tab.
Procedure
- Click the Installed Operators tab.
- In the list of installed operators, click Cost Management Metrics Operator.A metrics operator window opens.
- Click the CostManagementMetricsConfig tab to show a list of the configuration file names.
-
In the file name list, click the configuration file that you want to verify. In the default installation, the file name is
costmanagementmetricscfg-sample. A Details window opens. Click and check the following items:
prometheus_configuredandprometheus_connectedshould be set totrue:prometheus: last_query_start_time: '2021-01-25T20:59:06Z' last_query_success_time: '2021-01-25T20:59:06Z' prometheus_configured: true prometheus_connected: true service_address: 'https://thanos-querier.openshift-monitoring.svc:9091' skip_tls_verification: falseingress_path,last_successful_upload_time,last_upload_status, andlast_upload_timeshould all have content:upload: ingress_path: /api/ingress/v1/upload last_successful_upload_time: '2021-01-25T20:59:35Z' last_upload_status: 202 Accepted last_upload_time: '2021-01-25T20:59:35Z' upload: true upload_cycle: 360 upload_wait: 28 validate_cert: true
To collect data, cost management uses Prometheus queries that you can find in the source code.
1.5.2. Large OpenShift deployment issues Copy linkLink copied to clipboard!
If your deployment is large, the pod might be stopped with an ``OOMkilled`` message using the default resource requests. Increase the pod memory to 2GiB or more for the initial data ingestion. After the initial data ingestion completes, pod memory can be reduced. The exact memory requirements for the pod vary based on the size of the OpenShift cluster.
1.6. Configuring service account authentication for the cost management metrics operator Copy linkLink copied to clipboard!
Basic authentication is no longer supported. If you manually configured the cost management metrics operator to use basic authentication, complete the following instructions to set up service account authentication.
For more information, see Transition of Red Hat Hybrid Cloud Console APIs from basic authentication to token-based authentication via service accounts.
1.6.1. Creating a service account Copy linkLink copied to clipboard!
Before you can set up service account authentication for the cost management metrics operator, you must have a Client ID and Client Secret for your Red Hat Hybrid Cloud Console Service Account. If you already have this information, proceed to Creating the secret key/value pair for authentication.
To create a service account and get your Client ID and Client Secret, complete the following steps:
Procedure
-
From Red Hat Hybrid Cloud Console, click
.
- Click .
- Click the tab Service Accounts.
- Click .
Enter a name and description.
- The name must start with a letter and end with either a letter or a number. Use only alphanumeric characters and hyphens.
- Click .
Copy the Client ID and Client Secret and store them in a safe location.
- The secret will not be showed again after you close the window.
- Select the checkbox I have copied the client ID and secret and then click .
You should now see the account that you made in the list.
1.6.1.1. Granting access to the service account Copy linkLink copied to clipboard!
After you create a service account, you need to associate it with a group.
Procedure
- Click the tab User Access and then click Groups.
- Find your desired group in the list and click its name.
- In the window that opens, click the tab Service Accounts.
- Click .
- Select the service account that you made in the previous section, or whichever service account that you want to associate with the group.
- Click .
Your service account will now inherit permissions associated with the roles in your group. To create an integration, the service account that you created for the operator needs the Cloud Administrator role. For more information, see Default user roles in cost management.
1.6.2. Configuring service account authentication Copy linkLink copied to clipboard!
Prerequisites
- You are logged into the OpenShift Container Platform web console and have cluster administrator privileges.
- The Cost Management Metrics Operator appears in the Installed Operators tab.
- You have a Client ID and Client Secret for your Red Hat Hybrid Cloud Console Service Account. If you do not have this information, refer to the previous two sections for instructions.
1.6.3. Creating the secret key/value pair for service account authentication Copy linkLink copied to clipboard!
Procedure
- In the OpenShift Container Platform web console, click the tab Workloads and then click Secrets.
- In the Secrets window, click the drop-down and then select Key/value secret.
You will make two keys: one for your Client ID and one for your Client Secret. Enter the following information in the Create key/value secret window:
Secret Name:
service-account-auth-secretIn Key, enter
client_id.client_idIn the Value field for the first key
client_id`, you can upload the Value for your authorized Red Hat Hybrid Cloud Console user account, or paste it into the text box. You should have saved these credentials when you made your service account.red_hat_service_account_client_id- Next, click Add Key/Value to add the second key/value pair, this time for your Client Secret.
In Key, enter
client_secret:client_secretIn the Value field for the second key
client_secret, you can upload the Value for your authorized Red Hat Hybrid Cloud Console user account, or paste it into the text box.red_hat_service_account_client_secret- After you verify that the key/value details for the secret are correct, click to complete the creation of your service account authorization secret.
- Copy the name of your secret. You will use it in the following section.
1.6.4. Modifying the YAML file Copy linkLink copied to clipboard!
Now that you created your secret, you will modify the Cost Management Metrics Operator API YAML file.
Procedure
- Click the tab Operators and then click Installed Operators.
- Find the Cost Management Metrics Operator and click its name.
Click the tab Cost Management Metrics Config and then click the configuration file in Name.
The default name is
costmanagementmetricscfg-sample.
- Click the tab YAML to open the file.
Locate the following lines in the YAML file:
authentication: type: token-
Change
type: tokentotype: service-account. Insert a new line for
secret_name. Enter the secret that you copied in the previous section.Example
authentication: secret_name: service-account-auth-secret #Change this line to match your secret name. type: service-account- Click .
1.7. Manually creating an Openshift Container Platform integration Copy linkLink copied to clipboard!
You can automatically create your OpenShift Container Platform integration by following the steps in Installing a cost operator. However, some situations, such as restricted network installations, require that you create an OpenShift Container Platform integration manually on Red Hat Hybrid Cloud Console.
Prerequisites
- You have an OpenShift Container Platform cluster installed.
- You are logged into the OpenShift Container Platform web console and have cluster administrator privileges.
Procedure
-
From Red Hat Hybrid Cloud Console, click Settings Menu
> Integrations.
- Click the Red Hat tab.
- Click , which opens the Add a cloud integration wizard.
- In Select your integration type, click .
- In Application, click cost management. Then click .
- Enter a name in Integration name. Then click .
- In a new tab, access the OpenShift Container Platform web console. Go to → and copy your Cluster Identifier.
- Back in cost management, enter your Cluster Identifier. Then click .
- Review the details and click to create the integration.
1.8. Updating operator resources Copy linkLink copied to clipboard!
The Cost Management Metrics Operator comes with a finite amount of resources. On larger clusters, the Cost Management Metrics Operator might run out of memory when it processes all of the metric data from Prometheus.
1.8.1. Default resources Copy linkLink copied to clipboard!
The Cost Management Metrics Operator has the following resources by default:
Limits:
- CPU: 500m
- memory: 500Mi
Requests:
- CPU: 100m
- memory: 20Mi
1.8.2. Increasing resources Copy linkLink copied to clipboard!
If the standard resources do not meet your needs, complete the following steps to increase the resources that are available to the operator:
- Go to the OpenShift Container Platform web console.
- From Installed Operators, click .
- Click the Subscription tab. Then click the Actions drop-down and select Edit Subscription.
- In the YAML file that appears, edit the deployment resources with values that meet the CPU and memory needs of your cluster:
kind: Subscription
metadata:
...
spec:
...
config:
resources: <<<<<
limits:
cpu: 500m
memory: 500Mi
requests:
cpu: 200m
memory: 100Mi
The operator is now redeployed and Deployment shows the new resources.
For more information about .spec.config.resources, see the API documentation.
1.9. Configuring a proxy for the Cost Management Metrics Operator Copy linkLink copied to clipboard!
You can configure a specific proxy for the Cost Management Metrics Operator (CMMO) to allow the CMMO to connect to Red Hat without granting access to the entire cluster.
If your OpenShift cluster is on an internal network with no direct Internet access, you must typically use a proxy to reach external services. However, configuring a cluster-wide proxy grants Internet access to all OpenShift components, including operators, telemetry, and updates. To maintain a restricted environment, configure a proxy specifically for the CMMO. This ensures that only the CMMO has the connectivity required to push cost data to the Red Hat Cost Management SaaS, while the rest of the cluster remains isolated.
Procedure
- Follow the instructions in the Configuring proxy support in Operator Lifecycle Manager section of the OpenShift Container Platform documentation.
- When you are prompted to select an operator, select Cost Management Metrics Operator.
1.10. Adding a restricted network integration Copy linkLink copied to clipboard!
You can install OpenShift Container Platform on a restricted network that does not have access to the internet.
The procedure to add an OpenShift Container Platform cluster operating on a restricted network as a cost management integration is different in the following ways:
- Operator Lifecycle Manager is configured to install and run local integrations.
-
The
costmanagement-metrics-operatoris configured to store cost report CSV files locally using a persistent volume claim (PVC). - Cost reports stored in the PVC are downloaded to a workstation.
- An OpenShift Container Platform integration is created manually.
- Cost reports are uploaded to Red Hat Hybrid Cloud Console from your workstation.
1.10.1. Installing the cost management operator on a restricted network Copy linkLink copied to clipboard!
Because remote integrations require full Internet connectivity, Operator Lifecycle Manager (OLM) cannot access OpenShift Container Platform clusters that are installed on restricted (disconnected) networks. You must install and configure OLM to run locally.
Prerequisites
- You installed an OpenShift Container Platform cluster.
- You have a workstation with unrestricted network access.
- You logged in to the OpenShift Container Platform web console and have cluster administrator privileges.
Procedure
Complete the following OpenShift Container Platform procedure to create a local mirror of the
costmanagement-metrics-operator: Using Operator Lifecycle Manager in disconnected environments.NoteThe
costmanagement-metrics-operatoris in theredhat-operatorscatalog in theregistry.redhat.io/redhat/redhat-operator-index:OCP_VERSIONwhereOCP_VERSIONmatches the cluster version.Prune unwanted objects from the index before you push to the mirrored registry, but do not delete the
costmanagement-metrics-operatorpackage.- Log in to the OpenShift Container Platform web console and click → .
- Click Cost Management Metrics Operator.
-
The Install Operator window opens. Select the
costmanagement-metrics-operatornamespace that you want to install. If the namespace does not exist, it gets created. - Click .
Verification steps
- After a short wait, Cost Management Metrics Operator appears in the Installed Operators tab in Project: all projects or Project: costmanagement-metrics-operator.
- For more details about the Operator Lifecycle Manager, see What is Operator Lifecycle Manager?
1.10.2. Configuring the Cost Operator on a restricted network Copy linkLink copied to clipboard!
Learn how to run the costmanagement-metrics-operator on a restricted network.
Prerequisites
-
You installed
costmanagement-metrics-operator. - You logged into the OpenShift Container Platform web console and have cluster administrator privileges.
Procedure
-
From the OpenShift Container Platform web console, select Operators > Installed Operators >
costmanagement-metrics-operator> CostManagementMetricsConfig > Create Instance. Set a storage amount. If you do not specify an amount, the operator creates a default persistent volume claim (PVC) called
costmanagement-metrics-operator-datawith 10Gi of storage.NoteTo configure the
costmanagement-metrics-operatorto use a different PVC, editvolume_claim_templatein YAML view.- Select YAML view.
-
Enter a value in
max_reports_to_storeto set the maximum number of reports that you want to store. Enter a value in
upload_cycleto set how many minutes you want to pass between each report generation.packaging: max_reports_to_store: 30 max_size_MB: 100upload: upload_cycle: 360ImportantThe
costmanagement-metrics-operatorcreates one report every 360 minutes by default. The default value of 30 reports and 360 minutes gives you 7.5 days of reports.After the maximum number of reports generate, any subsequent reports replace the oldest report in storage. To avoid losing reports, download them from your PVC.
Set
upload_toggletofalse:upload: upload_cycle: 360 upload_toggle: falseSet
sourceto empty braces:source: {}Set
authenticationto empty braces:authentication: {}- Click .
Verification steps
- Select the CostManagementMetricsConfig that you created.
- Click .
Verify that a report was created by viewing the data in
packaging:packaging: last_successful_packaging_time: `current date and time` max_reports_to_store: 30 max_size_MB: 100 number_of_reports_stored: 1 packaged_files: - >- /tmp/costmanagement-metrics-operator-reports/upload/YYYYMMDDTHHMMSS-cost-mgmt.tar.gzNoteAfter configuration,
costmanagement-metrics-operatorgenerates an initial report. These reports are inpackaged_files.
1.10.3. Downloading cost reports Copy linkLink copied to clipboard!
If you configured the costmanagement-metrics-operator to run on a restricted network, the reports from the persistent volume claims (PVC) are temporarily stored in a workstation. Copy the reports to an unrestricted network.
The default configuration saves one week of reports. To avoid losing metrics data, download the reports locally and upload them to Red Hat Hybrid Cloud Console weekly.
You can configure any PVC, but by default, most PVCs are ReadWriteOnce. For ReadWriteOnce PVCs, the volume-shell must be attached to the same node as the operator pod.
Prerequisites
- You have a workstation with unrestricted network access.
-
costmanagement-metrics-operatorreports in your PVC.
Procedure
Create the following pod and set
claimNameto the PVC with the report data:kind: Pod apiVersion: v1 metadata: name: volume-shell namespace: costmanagement-metrics-operator spec: volumes: - name: costmanagement-metrics-operator-reports persistentVolumeClaim: claimName: costmanagement-metrics-operator-data containers: - name: volume-shell image: busybox command: ['sleep', '3600'] volumeMounts: - name: costmanagement-metrics-operator-reports mountPath: /tmp/costmanagement-metrics-operator-reportsRun
rsyncto copy all of the files from the PVC to a local folder:$ oc rsync volume-shell:/tmp/costmanagement-metrics-operator-reports/upload local/path/to/save/folder- Confirm that the files were copied.
Run the following command to connect to the pod and delete the contents of the upload folder:
$ oc rsh volume-shell $ rm /tmp/costmanagement-metrics-operator-reports/upload/*(Optional) Run the following command to delete the pod that you used to connect to the PVC:
$ oc delete -f volume-shell.yaml
Viewing your PVC usage
In the OpenShift tab in Red Hat Hybrid Cloud Console, your PVCs with the highest usage automatically populate under Persistent Volume Claims. To view all PVCs, click at the end of the section.
You can filter your PVC data by the following fields: * Persistent volume claim * Cluster * StorageClass
1.10.4. Uploading cost reports to console.redhat.com Copy linkLink copied to clipboard!
Manually upload your locally stored cost reports from a restricted network to Red Hat Hybrid Cloud Console.
The default configuration saves one week of reports. Download the reports locally and upload them to Red Hat Hybrid Cloud Console weekly to avoid losing metrics data.
Prerequisites
- You created a Bearer token.
-
You have
costmanagement-metrics-operatorreports downloaded locally. - You created an integration on Red Hat Hybrid Cloud Console. For more information, see Manually creating an Openshift Container Platform integration.
- You are a Red Hat account user with Organization Administrator entitlements.
- You have a workstation with unrestricted network access.
Procedure
To upload your reports to Red Hat Hybrid Cloud Console, set your client_id and client_secret to your credentials, set FILE_NAME to the report that you want to upload, and enter your Bearer token in $TOKEN:
$ curl -vvvv -F "file=@$FILE_NAME.tar.gz;type=application/vnd.redhat.hccm.tar+tgz" -H "Authorization: Bearer $TOKEN" https://console.redhat.com/api/ingress/v1/upload
Verification steps
- From cost management, click .
- On the OpenShift details page, confirm that you have OpenShift usage data for your cluster.
Chapter 2. Configuring and viewing your data Copy linkLink copied to clipboard!
After adding your OpenShift Container Platform and cloud infrastructure integrations, in addition to showing cost data by integration, cost management will automatically show AWS and Microsoft Azure cost and usage related to running your OpenShift Container Platform clusters on their platforms.
On the cost management Overview page, your cost data is sorted into OpenShift and Infrastructure tabs. Select Perspective to toggle through different views of your cost data.
You can also use the global navigation menu to view additional details about your costs by cloud provider.
To add other types of integrations, see:
2.1. Limiting access to cost management resources Copy linkLink copied to clipboard!
After you add and configure integrations in cost management, you can limit access to cost data and resources.
You might not want users to have access to all of your cost data. Instead, you can grant users access only to data that is specific to their projects or organizations. With role-based access control, you can limit the visibility of resources in cost management reports. For example, you can restrict a user’s view to only AWS integrations, rather than the entire environment.
To learn how to limit access, see the more in-depth guide Limiting access to cost management resources.
2.2. Configuring tagging for your integrations Copy linkLink copied to clipboard!
The cost management application tracks cloud and infrastructure costs with tags. Tags are also known as labels in OpenShift.
You can refine tags in cost management to filter and attribute resources, organize your resources by cost, and allocate costs to different parts of your cloud infrastructure.
You can only configure tags and labels directly on an integration. You can choose the tags that you activate in cost management, however, you cannot edit tags and labels in the cost management application.
To learn more about the following topics, see Managing cost data using tagging:
- Planning your tagging strategy to organize your view of cost data
- Understanding how cost management associates tags
- Configuring tags and labels on your integrations
2.3. Configuring cost models to accurately report costs Copy linkLink copied to clipboard!
Now that you configured your integrations to collect cost and usage data in cost management, you can configure cost models to associate prices to metrics and usage.
A cost model is a framework that uses raw costs and metrics to define calculations for the costs in cost management. You can record, categorize, and distribute the costs that the cost model generates to specific customers, business units, or projects.
In Cost Models, you can complete the following tasks:
- Classifying your costs as infrastructure or supplementary costs
- Capturing monthly costs for OpenShift nodes and clusters
- Applying a markup to account for additional support costs
To learn how to configure a cost model, see Using cost models.
2.4. Visualizing your costs with Cost Explorer Copy linkLink copied to clipboard!
Use cost management Cost Explorer to create custom graphs of time-scaled cost and usage information and ultimately better visualize and interpret your costs.
To learn more about the following topics, see Visualizing your costs using Cost Explorer:
- 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
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.