Do you want to change the retention of statistical data for VM datastore latency. How would you modify the vCenter settings to retain these stats? Here is the complete guide.
In the VMware vCenter Server settings, you can set the statistics collection levels, different collection intervals and the time period that the data will be stored on the Server.
VMware vSphere administrators generally need to analyze the historical data of various metrics on the VMware vCenter Server to find out the reasons of performance issues. Collection levels are also referred to as statistics levels. You can view the collected statistics through the performance charts in the vSphere Client or through command-line monitoring utilities.
However, sometimes the default set of metrics is not enough. So today let’s go to change statistics level in vCenter.
Statistic collection intervals determine the frequency at which statistic queries occur, the length of time statistical data is stored in the database, and the type of statistical data that is collected.
1. Go to the vSphere Web Client console, select vCenter and click the “Configure” tab. In the Settings section, select the “General” item and click “Edit”.
2.In the “Statistics” section, select a value from the drop-down menu, we will see the following picture:
The lower the level is, the fewer number of statistic counters are used. You could change vCenter statistics level from 1 to 4. Level 1 and 2 can be used when the virtual infrastructure operates in the normal mode, while levels 3 and 4 are for short-term performance monitoring only when you need to collect detailed information on the objects to solve specific problems.
The rule here is simple: the longer the interval, the lower statistics level you should use (or the same as for a smaller interval). For example, you can set the level 4 for a 1-day interval, level 3 for two hours, level 2 for 30 minutes and level 1 for 5 minutes. This is specified in the VMware official documentation:
“The statistics level must be less than or equal to the statistics level that is set for the preceding statistics interval. This is a vCenter Server dependency.”
3. Now, let’s have a look at the four statistics levels and differences in these statistics levels.
4. (Optional) In Database Size, estimate the effect of the statistics settings on the database.
The estimated space required and number of database rows required are calculated and displayed.
In general, vCenter does not have a limit on the database size, but it would be nice if it did not exceed 40-50 GB since if the values are higher, it can start working very slowly.
5. Click Save.
βTips:
You may already know that it is necessary to perform image-based backup of large amounts of VMs managed by vCenter Server, however, vCenter Server does not provide the feature of virtual machine backup. And that makes backup software a commonly accepted choice.
Here I introduce you to a VMware backup software AOMEI Cyber Backup, it enables you to backup multiple VMs either managed by vCenter Server, or on a standalone ESXi host. Also, AOMEI Cyber Backup offers free version for you
β¦ Agentless Backup: create complete and independent image-level backup for VMware ESXi and Hyper-V VMs. β¦ Flexible vSphere Backup: batch backup large numbers of VMs managed by vCenter Server, or multiple VMs on a standalone ESXi host. β¦ Automated Execution: create backup schedules to automate backups daily, weekly, monthly. β¦ Multiple Storage Destinations: backup to local drive, or network destinations like NAS. β¦ Restore Entire VM: restore instant available VMs from any selected restore points to an original or new location.
AOMEI Cyber Backup supports both paid and free versions of VMware ESXi 6.0 and later versions. Next, I will show you how to batch backup VMs managed by vCenter Server with AOMEI Cyber Backup in 4 simple steps.
You can click the following button to download the 30-day free trial.
*You can choose to install this VM backup software on either Windows or Linux system.
1. Bind Devices: Access to AOMEI Cyber Backup web client, navigate to Source Device > VMware > + Add VMware Device to Add vCenter or Standalone ESXi host. And then click … > Bind Device.
2. Create Backup Task: Navigate to Backup Task > + Create New Task, and select VMware ESXi Backup as the Backup Type.
3. Set the Task Name, Device, Target, Schedule and Cleanup as needed.
4. Run Backup: Now you can click Start Backup and select Add the schedule and start backup now, or Add the schedule only.
Created backup tasks will be listed and monitored separately for restoring, progress checking and schedule changing.
When restoring, you can also restore to new location to create a new VM in the same or another datastore/host directly from the backup, saving the trouble of re-configuring the new VM.
The VMware vCenter Server provides you with the option of configuring statistics collection levels for how often data should be captured, how long the data should remain in the database, and what kind data it should be collecting.