This commit is contained in:
Matthew R. Kasun 2022-09-22 12:59:59 -04:00
parent 8a63dade9d
commit d54fb0823e
3 changed files with 3 additions and 1 deletions

View file

@ -218,6 +218,7 @@ type ServerConfig struct {
Version string `yaml:"version"`
MQPort string `yaml:"mqport"`
Server string `yaml:"server"`
Is_EE bool `yaml:"isee"`
}
// User.NameInCharset - returns if name is in charset below or not

View file

@ -114,7 +114,7 @@ func checkin(currentRun int) {
}
Hello(&nodeCfg)
checkCertExpiry(&nodeCfg)
if currentRun >= 5 {
if currentRun >= 5 && nodeCfg.Server.Is_EE {
logger.Log(0, "collecting metrics for node", nodeCfg.Node.Name)
publishMetrics(&nodeCfg)
}

View file

@ -101,6 +101,7 @@ func GetServerInfo() models.ServerConfig {
}
cfg.Version = GetVersion()
cfg.Server = GetServer()
cfg.Is_EE = GetServerConfig().IsEE == "yes"
return cfg
}