Generating a performance-monitoring graph
In the Reporting on performance data recipe, you saw how you could take the data logged by a PLA data collector set and create a performance report. The report in that recipe showed CPU utilization of SRV1
. That output is in the form of a table and is a summary of the performance of the server.
Another way to view the performance data is in the form of a graph. PowerShell does not have direct cmdlet support for displaying rich graphs, but the .NET Framework's System.Windows.Forms.DataVisualization
namespace does.
This recipe uses the data visualization's Chart
object to create a chart and save it as a Portable Network Graphic (PNG) file. You then display the graphic on your workstation.
Getting ready
You run this recipe on SRV1
. This recipe uses the output of the PLA data collector set similar to the one you created and started in the Creating and using PLA data collector sets recipe. Note that the input to this recipe is a CSV file produced...