mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
ee check
This commit is contained in:
parent
8a63dade9d
commit
d54fb0823e
3 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -101,6 +101,7 @@ func GetServerInfo() models.ServerConfig {
|
|||
}
|
||||
cfg.Version = GetVersion()
|
||||
cfg.Server = GetServer()
|
||||
cfg.Is_EE = GetServerConfig().IsEE == "yes"
|
||||
|
||||
return cfg
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue