Tracking license usage in a multicluster environment

If you want to track the license usage of your product in a multicluster environment, you can manually add the values for each cluster to create a consolidated report.

Consolidating license usage data for tracking purposes

Note: Starting from IBM Cloud Pak® foundational services version 3.5.x, you can use License Service Reporter to track license usage in your environment in an automatized way. Deploy and configure License Service Reporter, and monitor the usage on a dedicated dashboard. For more information, see Tracking license usage in multicluster environment with License Service Reporter.

For smaller environments, or if you do not have resources for deploying and configuring License Service Reporter, you can use the following manual procedure.

Complete the following actions to create a consolidated report.

  1. Get the products_daily_<reported_period>_<cluster hostname>.csv report that is a part of an audit snapshot for each cluster in your environment. For more information, see: Retrieving license metric usage and IBM License Service API schema.
  2. Add the metricQuantity value of a product from a specific date for every cluster.
  3. Record the sum for the date.
  4. Repeat the preceding steps for each date within the requested period.
  5. Find the highest cumulative value. This value is the highest license usage of the product within the reported period.

Example

Example 1. License usage of IBM Cloud Pak® A on Cluster 1 as it is reported in cluster1_products-daily-2020-03-01-2020-03-05_<cluster1 hostname>.csv.

name metricQuantityDate metricQuantity metricName
IBM Cloud Pak A 3/1/2020 5 VIRTUAL_PROCESSOR_CORE
IBM Cloud Pak A 3/2/2020 30 VIRTUAL_PROCESSOR_CORE
IBM Cloud Pak A 3/3/2020 30 VIRTUAL_PROCESSOR_CORE
IBM Cloud Pak A 3/4/2020 29 VIRTUAL_PROCESSOR_CORE
IBM Cloud Pak A 3/5/2020 29 VIRTUAL_PROCESSOR_CORE

Example 2. License usage of IBM Cloud Pak® A on Cluster 2 as it is reported in cluster2_products-daily-2020-03-01-2020-03-05_<cluster2 hostname>.csv.

name metricQuantityDate metricQuantity metricName
IBM Cloud Pak A 3/1/2020 5 VIRTUAL_PROCESSOR_CORE
IBM Cloud Pak A 3/2/2020 10 VIRTUAL_PROCESSOR_CORE
IBM Cloud Pak A 3/3/2020 10 VIRTUAL_PROCESSOR_CORE
IBM Cloud Pak A 3/4/2020 9 VIRTUAL_PROCESSOR_CORE
IBM Cloud Pak A 3/5/2020 9 VIRTUAL_PROCESSOR_CORE

Example 3. An example of how to prepare a table to find the highest license usage in the environment where IBM Cloud Pak A is deployed on Cluster 1 and Cluster 2.

name metricQuantityDate metricQuantity on Cluster 1 Metric Quantity on Cluster 2 Total license usage MetricName
IBM Cloud Pak A 3/1/2020 5 5 10 VIRTUAL_PROCESSOR_CORE
IBM Cloud Pak A 3/2/2020 30 10 40 VIRTUAL_PROCESSOR_CORE
IBM Cloud Pak A 3/3/2020 30 10 40 VIRTUAL_PROCESSOR_CORE
IBM Cloud Pak A 3/4/2020 29 9 38 VIRTUAL_PROCESSOR_CORE
IBM Cloud Pak A 3/5/2020 29 9 38 VIRTUAL_PROCESSOR_CORE