Coder Social home page Coder Social logo

cmgrote / sargraphjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sanxiago/sargraphjs

0.0 2.0 0.0 263 KB

Create graphs from the output of sysstat using javascript

License: GNU General Public License v2.0

CSS 0.39% JavaScript 2.11% HTML 97.36% Shell 0.14%

sargraphjs's Introduction

sargraphjs

sargraphjs: Create graphs from systat sadf output using javascript
-----
Santiago Velasco( sargraphjs"A-MAIL-SIGN"sanxiago.com )

Create graphs from the output of sysstat command sadf

Using c3 Chart library http://c3js.org/ Which uses d3 http://d3js.org/

Eventually this can be used to graph other type of outputs, but will be content if it works with sar for now.

The working javascript can be seen here, you can paste your sadf output there. http://graph.sanxiago.com

You can also pipe the output of sadf using netcat to the server and it will create a page with the data, no need to copy paste. It will give you the url with your data in response.

sadf -- -A -p | nc graph.sanxiago.com 443

You can use a simple loop to generate a graph for the last 30 days:

for i in $(ls -1rt /var/log/sa/sa??); do sadf $i -- -A -p 21600; done | nc graph.sanxiago.com 443

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.