Git Product home page Git Product logo

dstat-graph's Introduction

dstat-graph

MIT License GoDoc Go Report Card Releases

generate png chart from dstat CSV file.
data visualization using go-chart
(inspired by dstat2graph)

cpu
net

Usage

output dstat csv using dstat --output

$ dstat -t --cpu --mem --disk --io --net --int --sys --tcp --output ./dstat.csv

load csv into dstat-graph (column filter with -f if necessary)

$ dstat-graph --csv ./dstat.csv -o cpu.png -f usr,sys,idl,wai

see more examples.

Download

Linux amd64 / Darwin amd64 binaries are available in Releases

Build

Build requires Go version 1.11+ installed.

$ go version

Run make pkg to Build and package for linux, darwin.

$ git clone https://github.com/octu0/dstat-graph
$ make pkg

Help

NAME:
   dstat-graph

USAGE:
   dstat-graph [global options] command [command options] [arguments...]

VERSION:
   1.0.0

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --csv value, -i value     /path/to/csv dstat csv path
   --out value, -o value     output file path (if argument is empty, write to tmpfile for parse test)
   --column value, -f value  pickup columns (defaults: plot all columns)
   --chart value, -t value   chart-type 'line' or 'bar' (defaults: 'line') (default: "line")
   --width value             image width (default: 600)
   --height value            image height (default: 400)
   --debug, -d               debug mode
   --verbose, -V             verbose. more message
   --help, -h                show help
   --version, -v             print the version

dstat-graph's People

Contributors

octu0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dstat-graph's Issues

issues compiling with go from source

bk@sneak:~/Downloads/dstat-graph-1.0.0$ make pkg
go get gopkg.in/urfave/cli.v1
go get github.com/comail/colog
go get github.com/wcharczuk/go-chart
go generate
mkdir -p pkg
GOOS=linux GOARCH=amd64 go build -o pkg/dstat-graph_linux_amd64-1.0.0 cmd/main.go

github.com/octu0/dstat-graph

/usr/local/go/src/github.com/octu0/dstat-graph/linechart.go:75:9: unknown field 'Show' in struct literal of type chart.Style
/usr/local/go/src/github.com/octu0/dstat-graph/linechart.go:92:14: undefined: chart.StyleShow
/usr/local/go/src/github.com/octu0/dstat-graph/linechart.go:98:23: undefined: chart.StyleShow
/usr/local/go/src/github.com/octu0/dstat-graph/linechart.go:110:9: unknown field 'Show' in struct literal of type chart.Style
make: *** [Makefile:36: pkg-linux-amd64] Error 2

Error while trying to launch dstat-graph: csv read error: EOF

Hi there, I've run simple dstat output.
dstat -t --cpu --mem --disk --io --net --int --sys --tcp --output ./dstat.csv
Then, I've compiled dstat-graph sources and tryed to run dstat-graph on this output.
./dstat-graph_linux_amd64-1.0.1 --csv ./dstat.csv -o cpu.png -f usr,sys,idl,wai
But i get an error:

[ error ] 2020/10/29 17:10:10 main.go:78: csv read error: EOF
[ error ] 2020/10/29 17:10:10 main.go:147: EOF

Do you know what issue that could be? I didn't edited dstat file in any ways.

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.