// Metrics fixes an issue where config files make nested values in the same
// map disappear.
Metrics fixes an issue where config files make nested values in the same
map disappear.
// Metrics fixes an issue where config files make nested values in the same // map disappear .
func Metrics() map[string]interface{} {
	conf := make(map[string]interface{})
	conf["enabled"] = viper.GetBool("metrics.enabled")
	client := make(map[string]interface{})
	client["host"] = viper.GetString("metrics.client.host")
	client["port"] = viper.GetInt("metrics.client.port")
	client["prefix"] = viper.GetString("metrics.client.prefix")
	conf["client"] = client
	return conf
}
func Metrics ( ) map [ string ] interface { } { conf := make ( map [ string ] interface { } ) conf [ " " ] = viper . GetBool ( " " ) client := make ( map [ string ] interface { } ) client [ " " ] = viper . GetString ( " " ) client [ " " ] = viper . GetInt ( " " ) client [ " " ] = viper . GetString ( " " ) conf [ " " ] = client return conf }
Metrics fixes an issue where config files make nested values in the same
map disappear.
Metrics fixes an issue where config files make nested values in the same map disappear .