Coder Social home page Coder Social logo

plotting_sadf's Introduction

plotting_sadf

plotting sadf info with gnuplot

NOTE : the UNIX user postgres can consult any info from sar

===========================

Prerequisite : GNUplot and sysstat

Instantaneous graphing (output to png and printing to screen in dumb directly) :

  • ./graph.cpu.sh
  • ./graph.swap.sh
  • ./graph.queue.sh
  • ./graph.mem.sh
  • ./graph.pages.sh
  • ./graph.io.sh

Statistics from sadf : sar from the last 24h

Use in postgres :

\cd <to/the/directory/of/plotting_sadf
\! ./graph.cpu.sh 

What it does

  1. execute getting_sadf_CPUusage.sh puts the sar stats in CSV file format ./getting_sadf_CPUusage.sh

  2. execute plotstats to plot in png gnuplot plotstats.cpu.plot

  3. take a look at the graph for the day in sar.cpu.png

Most notable scripts are :

  • getting_sadf_CPUusage.sh statistics from CPU (%user/%nice/%system/%iowait)
  • getting_sadf_mem.sh statistics from RAM
  • getting_sadf_queue.sh statistics from run-q
  • getting_sadf_swap.sh statistics from swap

There are also less noteworthy scripts :

  • getting_sadf_CPUpages.sh Pages from CPU statistics
  • getting_sadf_IOtransfert.sh Transfert to disk

TODO :

  • wrap it all up in full report
  • import and plot in PG (if relevant)

Example of cpu graph in png

Example of cpu graph in dumb terminal

plotting_sadf's People

Contributors

emerichunter avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.