Monitoring storage performance

In this recipe, we'll look at the following metrics:

  • disk.all.read
  • disk.all.write
  • disk.all.read_bytes
  • disk.all.write_bytes

How to do it…

Let's create a text and graphical representation of the performance data through the following steps:

  1. Display live data for the preceding metrics; you can use the following command for this:
    ~]# pmdumptext -H -t 1 -i -l disk.all.read disk.all.write disk.all.read_bytes disk.all.write_bytes -h guest.example.com
    
    How to do it…
  2. Next, create a configuration file for pmchart to display live data called disk.conf with the following contents:
    #kmchart
    version 1
    
    chart style stacking
            plot color #ffff00 metric mem.util.used
            plot color #ee82ee metric mem.util.free
    chart style stacking
            
    plot color #ffff00 metric swap.used
            plot color #0000ff metric swap.free
    chart style plot antialiasing off
            plot color #19ff00 metric swap.pagesin
            plot color #ff0004 metric swap.pagesout
    
  3. Now, use pmchart to plot a live chart for guest.example.com, as follows:
    ~]# pmchart -h guest.example.com -c memory.conf
    
    How to do it…
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset