forked from TrueCloudLab/frostfs-node
[#493] ir: Set default config values of prometheus and pprof servers
Although the default values for configurable addresses are empty strings, explicitly specifying the default values allows you to know about all possible configurations. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
ece6618560
commit
6d7fff1870
1 changed files with 2 additions and 0 deletions
|
@ -32,8 +32,10 @@ func newConfig(path string) (*viper.Viper, error) {
|
|||
func defaultConfiguration(cfg *viper.Viper) {
|
||||
cfg.SetDefault("logger.level", "info")
|
||||
|
||||
cfg.SetDefault("profiler.address", "")
|
||||
cfg.SetDefault("profiler.shutdown_timeout", "30s")
|
||||
|
||||
cfg.SetDefault("metrics.address", "")
|
||||
cfg.SetDefault("metrics.shutdown_timeout", "30s")
|
||||
|
||||
cfg.SetDefault("without_mainnet", false)
|
||||
|
|
Loading…
Reference in a new issue