From 6d7fff18703a17a94e6a83287442cc74e48a8c58 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 12 May 2021 10:43:02 +0300 Subject: [PATCH] [#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 --- cmd/neofs-ir/defaults.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/neofs-ir/defaults.go b/cmd/neofs-ir/defaults.go index 5fc79c732..98aef6818 100644 --- a/cmd/neofs-ir/defaults.go +++ b/cmd/neofs-ir/defaults.go @@ -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)