A Performance Monitor Data Collector (DC) Set is used to automatically log performance counters into a binary file for analysis later. We will configure the DC to automatically start each data and after server restarts. It will also be configured to create a compressed file (CAB) of the binary log file for smaller storage. This example will use a DC template that RKL uses for SQL Server performance counter logging.
Configure Base Data Collector Set
Figure 1 - Name the Data Collector Set
Figure 2 - Selecting Template
Figure 3 - Select the Log Location
Figure 4 - Handling Account Dialog
Note: If you get the Account Dialog with the User Name of NT AUTHORITY\SYSTEM. At this point I haven’t determined what permission the logged in user needs in the case. However, if you clear the NT AUTHORITY\SYSTEM from the dialog and click ok, windows accepts the change.
Configure Task Scheduler
Task Scheduler needs to be configured to ensure that the perfmon data collector set starts up after a machine restart and at the beginning of each day.
Figure 5 - Task Scheduler Trigger
Figure 6 - Task Scheduler Settings
At this point you can run the task from task scheduler and it will start collecting data. The next morning just after midnight it will stop the running task and start it up again logging to a new file.