Skip to content

Commit

Permalink
adding in missed file
Browse files Browse the repository at this point in the history
  • Loading branch information
xphyr committed Sep 24, 2018
1 parent 8fee9e5 commit e4b9201
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type exporterConfig struct {
BindAddress string
BindPort int
Multiconfig bool
Debug bool
}

// Config is a container for settings modifiable by the user
Expand All @@ -32,6 +33,7 @@ var (
ecsPassword = flag.String("password", "defaultPass", "Password")
listenAddress = flag.String("bind_address", "localhost", "Exporter bind address")
listenPort = flag.Int("bind_port", 9438, "Exporter bind port")
debugLevel = flag.Bool("debug", false, "enable debug messages")
// multiQuery = flag.Bool("multi", false, "Enable query endpoint")
)

Expand All @@ -55,7 +57,7 @@ func GetConfig() *Config {
Exporter: exporterConfig{
BindAddress: *listenAddress,
BindPort: *listenPort,
// Multiconfig: *multiQuery,
Debug: *debugLevel,
},
}
}

0 comments on commit e4b9201

Please sign in to comment.