discovery
This commit is contained in:
parent
e73f03792c
commit
cb97c6c8a5
@ -1,4 +1,4 @@
|
|||||||
central:
|
central:
|
||||||
address: "http://localhost:9090"
|
address: "http://localhost:9090"
|
||||||
port: 443
|
port: 443
|
||||||
log_path: "./bin/log.xml"
|
log_path: "./discovery/bin/log.xml"
|
||||||
|
6
probe.go
6
probe.go
@ -18,14 +18,13 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// /home/geek/develop/gopath/src/git.loafle.net/overflow/overflow_probe/config_manager/test_agent
|
// /home/geek/develop/gopath/src/git.loafle.net/overflow/overflow_probe/config_manager/test_agent
|
||||||
PATH = "/home/insanity/Develop/gopath/src/git.loafle.net/overflow/overflow_probe/config_manager/test_agent"
|
PATH = "/home/geek/Develop/gopath/src/git.loafle.net/overflow/overflow_probe/config_manager/test_agent"
|
||||||
)
|
)
|
||||||
|
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
log.Debug("ddddddddddddddddd")
|
|
||||||
go StartAgent()
|
go StartAgent()
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
}
|
}
|
||||||
@ -44,7 +43,10 @@ func StartAgent() {
|
|||||||
|
|
||||||
prb := Probe{}
|
prb := Probe{}
|
||||||
prb.startProbe()
|
prb.startProbe()
|
||||||
|
|
||||||
|
// Todo discovery start delete
|
||||||
discovery.Start()
|
discovery.Start()
|
||||||
|
|
||||||
prb.handleProbeStop(stopch)
|
prb.handleProbeStop(stopch)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user