From a8303c4e26fdeab3e7934b4b9dda8b75a0d188b7 Mon Sep 17 00:00:00 2001 From: Andrey Butusov Date: Thu, 29 Aug 2024 15:16:30 +0300 Subject: [PATCH 1/3] config: set the default rpc dial timeout to 1 minute Signed-off-by: Andrey Butusov --- cmd/neo-exporter/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/neo-exporter/config.go b/cmd/neo-exporter/config.go index 2f28952..b00113a 100644 --- a/cmd/neo-exporter/config.go +++ b/cmd/neo-exporter/config.go @@ -33,7 +33,7 @@ const ( func DefaultConfiguration(cfg *viper.Viper) { cfg.SetDefault(prefix+delimiter+cfgNeoRPCEndpoint, "") - cfg.SetDefault(prefix+delimiter+cfgNeoRPCDialTimeout, 5*time.Second) + cfg.SetDefault(prefix+delimiter+cfgNeoRPCDialTimeout, time.Minute) cfg.SetDefault(cfgMetricsEndpoint, ":16512") cfg.SetDefault(cfgMetricsInterval, 15*time.Minute) From 8bfceb6197ed17abf8d7d35be08bf71567b1fe99 Mon Sep 17 00:00:00 2001 From: Andrey Butusov Date: Thu, 29 Aug 2024 15:20:27 +0300 Subject: [PATCH 2/3] config: edit `chain.rpc.dial_timeout` to 60 sec in the example file Signed-off-by: Andrey Butusov --- config/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.yaml b/config/config.yaml index c823057..251c4e9 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -3,7 +3,7 @@ chain: # If true, monitor connects to the NeoFS chain, otherwise, to the Neo chain. fschain: false rpc: - dial_timeout: 5s + dial_timeout: 60s # stores the interval after which a current connection health check is performed. health_recheck_interval: 5s endpoint: From 34afd00f37c4acb09b8ae7c9726042c2c9cd6360 Mon Sep 17 00:00:00 2001 From: Andrey Butusov Date: Fri, 30 Aug 2024 08:39:53 +0300 Subject: [PATCH 3/3] config: set the default metrics interval to 15 sec Signed-off-by: Andrey Butusov --- cmd/neo-exporter/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/neo-exporter/config.go b/cmd/neo-exporter/config.go index b00113a..70e1faa 100644 --- a/cmd/neo-exporter/config.go +++ b/cmd/neo-exporter/config.go @@ -36,7 +36,7 @@ func DefaultConfiguration(cfg *viper.Viper) { cfg.SetDefault(prefix+delimiter+cfgNeoRPCDialTimeout, time.Minute) cfg.SetDefault(cfgMetricsEndpoint, ":16512") - cfg.SetDefault(cfgMetricsInterval, 15*time.Minute) + cfg.SetDefault(cfgMetricsInterval, 15*time.Second) cfg.SetDefault(cfgLoggerLevel, "info") }