vCenter Server contains a database of all objects managed by the vCenter Server instance. In addition to inventory objects, the database includes vCenter Server statistics, events, alarms, and tasks. You can calculate the database storage consumption by adding the sizes of all data categories.

You need to monitor storage consumption in vCenter Server.

Prerequisites

This task assumes you have previously authenticated and created a client session.

Procedure

  1. Prepare a request for database usage statistics.
    Include metric IDs both for vcdb_core_inventory and vcdb_seat. The name vcdb_seat refers to Statistics, Events, and Tasks in the vCenter Server database.
  2. Issue the request to the API endpoint.
  3. Process the resulting data points as needed.
  4. Format and print the results.

Results

The result of this procedure shows the storage used in the vCenter Server database, which includes storage overhead used for indexes and other optimizations beyond the actual size of the data.