Skip to content

Commit

Permalink
examples README
Browse files Browse the repository at this point in the history
  • Loading branch information
octu0 committed Dec 24, 2019
1 parent 7f86403 commit 49e9e19
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# example

To run example, you need to install dstat-graph in `$GOPATH`

```
go get github.com/octu0/dstat-graph
```

Next, generate a graph using csv in the example directory

```
$ cd examples
$ go run $GOPATH/src/github.com/octu0/dstat-graph/cmd/main.go --csv ./dstat.csv -o cpu.png -f usr,sys,idl,wai
```

You can check the generated image using the viewer app.

![cpu](https://github.com/octu0/dstat-graph/blob/master/examples/cpu.png?raw=true)

useful as [dstat2graph.sh](https://github.com/octu0/dstat-graph/blob/master/examples/dstat2graph.sh)

0 comments on commit 49e9e19

Please sign in to comment.