From cb97c6c8a51f70e0cae7a2a36fa15b9fdcffaeaf Mon Sep 17 00:00:00 2001 From: geek Date: Tue, 8 Aug 2017 16:45:41 +0900 Subject: [PATCH] discovery --- discovery/bin/collector.yaml | 2 +- probe.go | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/discovery/bin/collector.yaml b/discovery/bin/collector.yaml index fe405f5..0cd7f09 100644 --- a/discovery/bin/collector.yaml +++ b/discovery/bin/collector.yaml @@ -1,4 +1,4 @@ central: address: "http://localhost:9090" port: 443 -log_path: "./bin/log.xml" +log_path: "./discovery/bin/log.xml" diff --git a/probe.go b/probe.go index f908b58..2c97d00 100644 --- a/probe.go +++ b/probe.go @@ -18,14 +18,13 @@ import ( const ( // /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 func main() { wg.Add(1) - log.Debug("ddddddddddddddddd") go StartAgent() wg.Wait() } @@ -44,7 +43,10 @@ func StartAgent() { prb := Probe{} prb.startProbe() + + // Todo discovery start delete discovery.Start() + prb.handleProbeStop(stopch) }