From 4c6efa8afd113ca9c41fa86ae3d6b0479f4bb147 Mon Sep 17 00:00:00 2001 From: scoiatael Date: Tue, 7 Mar 2017 15:54:07 +0100 Subject: [PATCH] Add option for setting dd address --- main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.go b/main.go index b2ab717..2805956 100644 --- a/main.go +++ b/main.go @@ -37,6 +37,11 @@ func main() { Value: "127.0.0.1", Usage: "Address to listen on", }, + cli.StringFlag{ + Name: "telemetry", + Value: "127.0.0.1", + Usage: "Address to send metrics to", + }, cli.Int64Flag{ Name: "port", Value: 8080, @@ -46,8 +51,10 @@ func main() { app.Action = func(c *cli.Context) error { config := Config{} config.Features = make(map[string]bool) + config.Keyspace = c.String("keyspace") config.Hosts = strings.Split(c.String("hosts"), ",") + config.StatsdAddr = c.String("telemetry") if c.Bool("migrate") { config.Append(actions.Migrate{}) }