IBM LinuxONE Community Cloud - Group home

How to setup IBM Cloud Infrastructure Center 1.2.1 and IBM Cloud Pak for AIOps for consumption-based chargeback


Author: Meng Jie Min (

This blog provides best practices on how to configure IBM® Cloud Pak® for AIOps’s infrastructure management for consumption-based chargeback via the integration with IBM Cloud Infrastructure Center.


Cloud Infrastructure Center can integrate with the ‘infrastructure automation’ component of Cloud Pak for AIOps to provide support for chargeback, based on a consumption model.

The consumption model is based on the used resources to a virtual machine (VM), such as the number of CPUs, memory, and network. After Cloud Infrastructure Center is integrated with the ‘infrastructure automation’ component of Cloud Pak for AIOps, the chargeback report of Cloud Infrastructure Center with the used resources can be generated and managed on the chargeback dashboard of the Cloud Pak for  AIOps console.

You can use the chargeback dashboard of the Cloud Pak for AIOps console to view and manage the chargeback cost. The chargeback feature enables to calculate VM charges based on provider or tenant (project).


·        IBM Cloud Pak for AIOps: Cloud Pak for AIOps is an IT operations management solution that lets IT operators place AI at the core of their IT operation toolchain. It includes a component named ‘infrastructure automation’, which includes components from IBM Cloud Pack for Multi-cloud Management. 

·        Infrastructure Automation: Infrastructure automation is included in Cloud Pak for AIOps.  ‘Infrastructure automation’ consists of these components from Cloud Pak for Multi-cloud Management:

o   Infrastructure management, previously called Red Hat CloudForms.

o   Managed services, previously called Terraform & Service Automation or IBM Cloud Automation Manager.


·        IBM Cloud Infrastructure Center version 1.2.1 or above

·        IBM Cloud Park for AIOps version 4.1.0 or above


The steps in this example describe how an administrator generates a consumption-based chargeback report for KVM with Cloud Pak for AIOps and Cloud Infrastructure Center, for the 5 virtual machines in the ‘ibm-default project’ of Cloud Infrastructure Center.

For more information about managing projects in Cloud Infrastructure Center, refer to Managing projects.


·        Make sure that you turn on the monitoring data collection for collecting the metering on Cloud Infrastructure Center. For more information refer to enabling and disabling monitoring services.


1. Open ‘Infrastructure management’ of Cloud Pak for AIOps

a. Login to Cloud Pak for AIOps and browse to ‘Menu’.

b. On the menu click ‘Automate Infrastructure’ > ‘Infrastructure management’.

2. Add Cloud Infrastructure Center as a new Cloud Provider

a. On the left menu bar of ‘IBM Automation | Infrastructure Management’, click ‘Compute’ > ‘Clouds’ > ‘Providers’.

b. Click ‘Configuration’ > ‘Add a New Cloud Provider’.

c. Fill the blanks with following attributes.

                                                               i.      Type: IBM Cloud Infrastructure Center

                                                             ii.      Name: You can change based on preference

                                                            iii.      Zone: default

                                                            iv.      Provider Region: RegionOne

                                                              v.      API Version: Keystone V3

                                                            vi.      Domain ID: default

                                                          vii.      Tenant Mapping Enabled: Switch to On

                                                         viii.      Security Protocol: SSL without validation

                                                            ix.      Hostname (for IPv4 or IPv6 address): IP or Hostname for Cloud Infrastructure Center

                                                             x.      API Port: 5000

                                                            xi.      Username and Password: Base on your Cloud Infrastructure Center

                                                          xii.      Events Type: Disabled

Note: The ‘Username’ and ‘Password’ (credential to Cloud Infrastructure Center) is administrator of Cloud Infrastructure Center but not an administrator of a specified project. The administrator of Cloud Infrastructure Center is the default admin after installation (root) or new configured non-root user admin (for more information, refer to Non-root user authorization on Cloud Infrastructure Center). If LDAP is configured, it would be the initial admin on the LDAP (for more information, refer to Configuring LDAP). This administrator of Cloud Infrastructure Center can manage all projects. After the Cloud Provider is added, chargeback reports for different projects’ virtual machines of Cloud Infrastructure Center might be generated according to the report template chargeback filters (specified at Step 6).

d. Click ‘Validate’ and add the Cloud Provider after ‘Validation Successful’ shown in step c above.

e. It will take some time to synchronize data from Cloud Infrastructure Center.

3. Enable the application settings for chargeback

a. Click ‘Settings’ > ‘Application Settings’.

b. In the ‘IA: IM Region: Region 0 [0]’ section, choose ‘C & U Collection’ and enable ‘Collect for All Clusters’ in ‘Clusters’ and ‘Collect for All Datastores’ in Datastores. Click ‘Save’ button.

Choose ‘Zones ’ > ‘Zone: Default Zone (current)’ > ‘Server: EVM[1] (current)’ and enable following in ‘Server Roles’:

i.            ‘Capacity & Utilization Coordinator’

ii.            ‘Capacity & Utilization Data Collector’

iii.            ‘Capacity & Utilization Data Processor’

Click ‘Save’ button.

4. Create the chargeback rate for the consumption model

Note that chargeback report metrics include ‘allocated’ resources and ‘used’ resources. To use consumption model, you must have to set the rates for the ‘used’ CPU(s), memory, network I/O and disk storage not to zero. The rates for ‘’allocation’ CPU(s), memory and disk storage must set to zero.

a. Click ‘Overview’ > ‘Rates’.

b. Click ‘Configuration’ > ‘Add a new Chargeback Rate’.

c. Create a compute chargeback rate, select ‘Type’ > ‘Compute’. Click ‘Add’ button.

d. Create a storage chargeback rate, select ‘Type’ > ‘Storage’. Click ‘Add’ button.

e. Check the compute chargeback rate and storage chargeback rate are added successfully.

5. Assign the chargeback rate to the specific projects

a. Click ‘Overview’ > ‘Chargeback’ > ‘Assignments’.

b. Select ‘Compute’, assign to ‘Tenants’ and select ‘Rate’ for the project. Click ‘Save’.

c. Select ‘Storage’, assign to ‘Tenants’ and select ‘Rate’ for the project. Click ‘Save’.

6. Create the chargeback report

a. Click ‘Overview’ > ‘Reports’.

b. Select ‘All Reports’ > ‘My Company (All Groups)’ > ‘Custom’.        

c. Click ‘Configuration’ > ‘Add a new report’.

d. Fill the field of ‘Columns’ as needed.

Note: In the `Selected Fields`, you can use following columns to generate consumption report:

         i.            CPU Total Cost

       ii.            CPU Used Cost

      iii.            CPU Used Rate

      iv.            CPU Used

        v.            Chargeback Rates

      vi.            Disk I/O Used Cost

    vii.            Disk I/O Used Rate

   viii.            Fixed Compute Metric

      ix.            Memory Used Cost

       x.            Memory Used Rate

      xi.            Memory Total Cost

    xii.            Network I/O Used Cost

  xiii.            Network I/O Used Rate

   xiv.            Network I/O Used

    xv.            Storage Total Cost

   xvi.            Storage Used Cost

 xvii.            Storage Used Rate

Storage Used

e. Fill the field of ‘Formatting’ as needed.

f. Fill the field of ‘Filter’ as needed.

g. Select ‘Preview’ to check the report and click ‘Add’ button.

7. Generate chargeback reports

a. Click ‘Overview’ > ‘Reports’ and select ‘All Reports’ > ‘My Company (All Groups)’ > ‘Custom’ > ‘IBM-Z-Consumption-Model-Report' and click ‘Queue’ button to generate a new report.

b. Click ‘Overview’ > ‘Report’ to check all saved reports.

Note: It may take hours to synchronize metric data with a new cloud provider. If the report shows no record, try again after several hours.

Following the description of the blog, you should be able to integrate IBM Cloud Infrastructure Center with IBM Cloud Pak for AIOps in consumption-based chargeback support.

Related information