We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b361fd9 + 04afcae commit 53cc493Copy full SHA for 53cc493
cmd/root.go
@@ -160,10 +160,9 @@ func initConfig() {
160
viper.AddConfigPath("/etc/mongodb_query_exporter")
161
// Search config in home directory with name ".mongodb_query_exporter" (without extension).
162
viper.AddConfigPath(usr.HomeDir + "/.mongodb_query_exporter")
163
- //config file name without extension
164
- // viper.SetConfigName("config")
165
}
166
+ viper.SetConfigType("yaml")
167
if err := viper.ReadInConfig(); err != nil {
168
panic(err)
169
0 commit comments