Tanzu Kubernetes Metering and Reporting

Tanzu Kubernetes Metering and Reporting #

Configuration #

Tanzu is automatically detected if the Usage Meter administrator configures the endpoint and credentials for each vCenter to be metered using the Usage Meter web application. The Usage Meter administrator can choose to either meter Tanzu as a vRAM or CPU cores metric by selecting the respective option from the “If Tanzu is detected, choose the metric to report:” drop-down list. The Usage Meter administrator can switch between the vRAM metric and CPU cores metric any time during the metering period. The default metering metric is vRAM. Any of the following Tanzu editions can be selected in the Usage Meter web application as well.

  • Tanzu Basic
  • Tanzu Standard
  • Tanzu Advanced

Note: Currently, Usage Insight will only report Tanzu-related usage as Basic in the monthly usage reports, irrespective of the selected Tanzu edition. In future vCloud Usage Insight releases, there will be a fine-grain mapping of the Tanzu-related usage and its correlating edition.

Note: It is recommended that a single Usage Meter instance meters a single Tanzu edition. For datacenters using different Tanzu editions, there should be a separate Usage Meter installation for each used Tanzu edition. Metering

Only Tanzu Basic-related VMs are metered based on Tanzu Basic usage. The following type of VMs will be considered as Tanzu Basic-related VMs:

  • Supervisor VM: These VMs are Kubernetes control plane VMs. Three Kubernetes control plane VMs in total are created on the hosts that are part of the Supervisor Cluster. The three-control plane VMs are load-balanced as each one of them has its own IP address. Additionally, a floating IP address is assigned to one of the VMs. vSphere DRS determines the exact placement of the control plane VMs on the ESXi hosts and migrates them when needed. vSphere DRS is also integrated with the Kubernetes Scheduler on the control plane VMs so that DRS determines the placement of vSphere Pods. When as a DevOps engineer, you schedule a vSphere Pod, the request goes through the regular Kubernetes workflow, then to DRS, which makes the final placement decision.
  • POD VM: A vSphere Pod is a VM with a small footprint that runs one or more Linux containers. Each vSphere Pod is sized precisely for the workload that it accommodates and has explicit resource reservations for that workload. It allocates the exact amount of storage, memory, and CPU resources required for the workload to run. vSphere Pods are only supported with Supervisor Clusters configured with NSX-T Data Center as the networking stack.
  • TKG VM: VMs running and managing Tanzu Kubernetes clusters. A Tanzu Kubernetes cluster is a full distribution of the open-source Kubernetes container orchestration platform that is built, signed, and supported by VMware. You can provision and operate Tanzu Kubernetes clusters on the Supervisor Cluster by using the Tanzu Kubernetes Grid Service. Both main nodes and worker nodes are metered in the Tanzu Kubernetes cluster.

Tanzu Basic supports both time-based average vRAM metering metric and CPU cores metering metric.

  • vRAM metric (Time-based average vRAM usage): Average vRAM usage for all Tanzu Basic-related powered-on VMs.
  • CPU cores metric (Time-based average of host CPU core count): Average host cores usage for all hosts with at least one powered-on Tanzu Basic-related VM. A host is metered for the period where there was at least one powered-on Tanzu Basic-related VM running on this host during the metering period. All cores of the host are metered for the duration.

For example, if there is at least one powered-on VM that is running on a host with 6 CPU cores for any of the 10 days in a 30-day period, this host will be billed with an average host CPU core count of 2, (6 * (1/3) = 2). If a host -whether it has been modified or added or placed into migration mode (i.e., host state changes) - has been running even a single VM, the host is metered for the duration where there is at least one powered-on Tanzu Basic-related VM.

Reporting #

Tanzu Basic Usage (if detected) is always reported as a standalone line item in the Monthly Usage Report.

Sample Monthly Usage Report #

Product Hostname Version VC UUID Units of Measure Units to be Reported
Tanzu Basic Avg Capped Billed vRAM (GB) 20
Tanzu Basic Avg Number of Cores 6

Note: The report above shows both the vRAM and CPU cores usage are detected by Usage Meter. This could mean that the Usage Meter administrator has registered a single Tanzu Basic enabled vCenter and switched between the vRAM metric and CPU core metric during the metering period. Multiple vCenters with different metering metrics registered to the Usage Meter cloud also produce two-line items in the report. If the same metric is selected during the entire metering period for all vCenters registered in the Usage Meter, only one-line item with the selected metric will be shown in the report.

Virtual Machine History Report: #

The column “vmType” is included in the Virtual Machine History report indicating the types of VMs in the report:

vmType Translation
SUP Supervisor VM
POD POD VM
TKG VMs created by vSphere Tanzu Kubernetes Grid service
OTHERS VMs that are not categorized as SUP, POD or TKG

Note: Tanzu will not be shown in “associated products” on the vCenter registration and management page even if detected by Usage Meter.