Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/octu0/dstat-graph
- Owner: octu0
- License: mit
- Created: 2019-08-05T16:15:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-09T07:08:15.000Z (about 4 years ago)
- Last Synced: 2024-06-19T05:36:21.114Z (7 months ago)
- Topics: chart, csv, dstat, graph, visualization
- Language: Go
- Size: 113 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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-graphUSAGE:
dstat-graph [global options] command [command options] [arguments...]VERSION:
1.0.0COMMANDS:
help, h Shows a list of commands or help for one commandGLOBAL 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
```