mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-08 18:21:18 +08:00
do checkin after mq is connected, publish metrics only when node is connected
This commit is contained in:
@@ -107,7 +107,7 @@ func checkin() {
|
||||
config.Write(&nodeCfg, nodeCfg.Network)
|
||||
}
|
||||
Hello(&nodeCfg)
|
||||
if nodeCfg.Server.Is_EE {
|
||||
if nodeCfg.Server.Is_EE && nodeCfg.Node.Connected == "yes" {
|
||||
logger.Log(0, "collecting metrics for node", nodeCfg.Node.Name)
|
||||
publishMetrics(&nodeCfg)
|
||||
}
|
||||
|
Reference in New Issue
Block a user