From e4b920113242d3eac94599a7bc857ab86d284a3a Mon Sep 17 00:00:00 2001 From: Mark DeNeve Date: Mon, 24 Sep 2018 16:27:15 -0400 Subject: [PATCH] adding in missed file --- config/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 3a42bb9..9e1f63a 100644 --- a/config/config.go +++ b/config/config.go @@ -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 @@ -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") ) @@ -55,7 +57,7 @@ func GetConfig() *Config { Exporter: exporterConfig{ BindAddress: *listenAddress, BindPort: *listenPort, - // Multiconfig: *multiQuery, + Debug: *debugLevel, }, } }