mirror of
https://codeberg.org/scip/io-exporter.git
synced 2025-12-16 20:11:00 +01:00
dashboard and -h fix
* add grafana dashboard * test png * print help when -h is present regardless of other flags
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Version = `v0.0.7`
|
Version = `v0.0.8`
|
||||||
SLEEP = 5
|
SLEEP = 5
|
||||||
Usage = `io-exporter [options] <file>
|
Usage = `io-exporter [options] <file>
|
||||||
Options:
|
Options:
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
// enable to debug with roumon
|
||||||
|
//_ "net/http/pprof"
|
||||||
|
// then: roumon -host=localhost -port=9187
|
||||||
|
|
||||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -25,6 +29,10 @@ func Run() {
|
|||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if conf.Showhelp {
|
||||||
|
fmt.Println(Usage)
|
||||||
|
os.Exit(0)
|
||||||
|
}
|
||||||
setLogger(os.Stdout, conf.Debug)
|
setLogger(os.Stdout, conf.Debug)
|
||||||
|
|
||||||
metrics := NewMetrics(conf)
|
metrics := NewMetrics(conf)
|
||||||
|
|||||||
Reference in New Issue
Block a user