Check Database Usage in vCenter ServerLast Updated December 16, 2024
vCenter Server
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. This task assumes you have
previously authenticated and created a client session.
You need to monitor storage consumption in
vCenter Server
. - Prepare a request for database usage statistics.Include metric IDs both forvcdb_core_inventoryandvcdb_seat. The namevcdb_seatrefers to Statistics, Events, and Tasks in thevCenter Serverdatabase.
- Issue the request to the API endpoint.
- Process the resulting data points as needed.
- Format and print the 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.