Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/octu0/dstat-graph

Visualize dstat csv
https://github.com/octu0/dstat-graph

chart csv dstat graph visualization

Last synced: 3 months ago
JSON representation

Visualize dstat csv

Awesome Lists containing this project

README

        

# `dstat-graph`

[![MIT License](https://img.shields.io/github/license/octu0/dstat-graph)](https://github.com/octu0/dstat-graph/blob/master/LICENSE)
[![GoDoc](https://godoc.org/github.com/octu0/dstat-graph?status.svg)](https://godoc.org/github.com/octu0/dstat-graph)
[![Go Report Card](https://goreportcard.com/badge/github.com/octu0/dstat-graph)](https://goreportcard.com/report/github.com/octu0/dstat-graph)
[![Releases](https://img.shields.io/github/v/release/octu0/dstat-graph)](https://github.com/octu0/dstat-graph/releases)

generate png chart from dstat CSV file.
data visualization using [go-chart](https://github.com/wcharczuk/go-chart)
(inspired by [dstat2graph](https://github.com/sh2/dstat2graphs))

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

## Usage

output dstat csv using `dstat --output`

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

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

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

see more [examples](https://github.com/octu0/dstat-graph/tree/master/examples).

## Download

Linux amd64 / Darwin amd64 binaries are available in [Releases](https://github.com/octu0/dstat-graph/releases)

## Build

Build requires Go version 1.11+ installed.

```shell
$ go version
```

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

```shell
$ 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
```