diff options
Diffstat (limited to 'src/hub/src/spreadspace.org/sfive-hub/s5hub.go')
-rw-r--r-- | src/hub/src/spreadspace.org/sfive-hub/s5hub.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/hub/src/spreadspace.org/sfive-hub/s5hub.go b/src/hub/src/spreadspace.org/sfive-hub/s5hub.go index a062029..85274cf 100644 --- a/src/hub/src/spreadspace.org/sfive-hub/s5hub.go +++ b/src/hub/src/spreadspace.org/sfive-hub/s5hub.go @@ -21,6 +21,8 @@ func main() { startWeb := flag.Bool("start-web-server", true, "start a webserver") forward := flag.String("forward-url", "", "forward to another sfive-server with http server at base-url") forwardES := flag.String("forward-es-url", "", "forward to an ElasticSearch *index* via http") + forwardGraphite := flag.String("forward-graphite", "", "forward to Graphite at this host") + GraphiteBasePath := flag.String("graphite-base-path", "sfive", "use this as base for all paths on graphite") vizAppDir := flag.String("viz-dir", "/usr/share/sfive/viz", "base-path to the viz application") help := flag.Bool("help", false, "show usage") @@ -90,6 +92,16 @@ func main() { }() } + if *forwardGraphite != "" { + wg.Add(1) + go func() { + defer wg.Done() + s5hl.Println("start graphite forward") + server.RunForwardingToGraphite(*forwardGraphite, *GraphiteBasePath) + s5hl.Println("graphite forward finished") + }() + } + alldone := make(chan bool) go func() { defer func() { alldone <- true }() |