开启监控采集

This commit is contained in:
TsMask
2023-08-15 21:38:52 +08:00
parent ccc302566a
commit 362ed5a968

View File

@@ -14,6 +14,7 @@ import (
"ems.agt/features/dbrest"
"ems.agt/features/fm"
"ems.agt/features/monitor/monitor"
"ems.agt/features/pm"
"ems.agt/restagent/config"
)
@@ -102,6 +103,9 @@ func main() {
router := routes.NewRouter()
// 开启监控采集
monitor.StartMonitor(false, "")
for _, rest := range conf.Rest {
// ipv4 goroutines
if rest.IPv4 != "" {