Explorar o código

add metric_interval in ENV for publishing metrics

Max Ma hai 1 ano
pai
achega
780da3b696
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      config/config.go
  2. 1 1
      servercfg/serverconf.go

+ 1 - 0
config/config.go

@@ -94,6 +94,7 @@ type ServerConfig struct {
 	CacheEnabled               string        `yaml:"caching_enabled"`
 	EndpointDetection          bool          `json:"endpoint_detection"`
 	AllowedEmailDomains        string        `yaml:"allowed_email_domains"`
+	MetricInterval             string        `yaml:"metric_interval"`
 }
 
 // SQLConfig - Generic SQL Config

+ 1 - 1
servercfg/serverconf.go

@@ -91,7 +91,7 @@ func GetServerConfig() config.ServerConfig {
 	}
 	cfg.JwtValidityDuration = GetJwtValidityDuration()
 	cfg.RacAutoDisable = GetRacAutoDisable()
-
+	cfg.MetricInterval = GetMetricInterval()
 	return cfg
 }