Skip to content

hcooper/sarplot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 

Repository files navigation

sarplot - a script to turn the extremly useful data produced from sar/sysstat into ASCII graphs using gnuplot

Example plot of 1 minute load averages:

$ ./sarplot -m load

                                 1 Minute Load Average

    0.08 ++--+----+---+---+---+----+--*+---+---+----+---*---+---+----+---+--++
         +        +       +        +  *    +    1 Minute Load Average+****** +
    0.07 ++                           *                 *                   ++
         |                            *                 *                    |
    0.06 ++                           *                 *                   ++
         |                            *                 *                    |
         |                            *                 *                    |
    0.05 ++                           *    *            *                   ++
         |                            *    *            *                    |
    0.04 ++                           *    *            **     *            ++
         |                           **    *           * *     *             |
    0.03 ++             *            **    * *         * *     *            ++
         |              *            **    * *         * *     *             |
    0.02 ++             *            ** * ** *  *      * *    **            ++
         |              *            ** * ** *  *      * *    * *            |
         |              **           ** * ****  *      * *    * *            |
    0.01 ++             **  *        *** *****  **     * *    * *           ++
         +        +     **+ *      + *** *****  **  +  * *  + * *    +       +
       0 ***************-***************-***************+******-******---+--++
       00:00    02:00   04:00    06:00   08:00    10:00   12:00    14:00  16:00
                                         Time

Example with date and metric specified:

$ sarplot -m load -d 25
                               1 Minute Load Average

    3 ++-+--+--+--+--+--+-+--+--+--+--+--+--+--+--+--+--+--+-+--+--+--+--+-++
      +     +     +     +    +     +     +     1 Minute Load Average ****** +
      |                                                      *              |
  2.5 ++                                                     *             ++
      |                                                      *              |
      |                                                      *              |
    2 ++                                                     *      *      ++
      |                                                      *      *       |
      |                                       *         *    *      *       |
  1.5 ++                                      *         **   * *    ***    ++
      |                                       *         **   * *    ***     |
      |           *                           *  *      ***  ****  ** *     |
    1 ++          *                   *      **  *     **** *****  ** **  **+
      |           *              * **** **   **  * * ***** ** ******* *** **|
      |           *              ************************* **  ****** *******
  0.5 *+          *           *  **************** ***   ** *    **     * * **
      |***    *** **        * *********** ******  **    *                * *|
      +*****+********  *** **+*****+    *+*    *     +     +    +     +     +
    0 ++-*-**********************--+--+--+--+--+--+--+--+--+-+--+--+--+--+-++
    25/11 25/11 25/11 25/1125/11 25/11 25/11 25/11 25/11 25/1125/11 25/11 26/11
    00:00 02:00 04:00 06:0008:00 10:00 12:00 14:00 16:00 18:0020:00 22:00 00:00

About

Produce ASCII graphs of data logged by sar/syshot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published