Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Commit

Permalink
Add option for setting dd address
Browse files Browse the repository at this point in the history
  • Loading branch information
scoiatael committed Mar 7, 2017
1 parent 4cc6704 commit 4c6efa8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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{})
}
Expand Down

0 comments on commit 4c6efa8

Please sign in to comment.