ing
This commit is contained in:
parent
fa39093d51
commit
d7d671229c
17
Gopkg.lock
generated
17
Gopkg.lock
generated
|
@ -120,8 +120,8 @@
|
||||||
"gzip",
|
"gzip",
|
||||||
"zlib"
|
"zlib"
|
||||||
]
|
]
|
||||||
revision = "5fb1f31b0a61e9858f12f39266e059848a5f1cea"
|
revision = "b939724e787a27c0005cabe3f78e7ed7987ac74f"
|
||||||
version = "v1.3.0"
|
version = "v1.4.0"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/klauspost/cpuid"
|
name = "github.com/klauspost/cpuid"
|
||||||
|
@ -133,20 +133,11 @@
|
||||||
branch = "master"
|
branch = "master"
|
||||||
name = "github.com/shirou/gopsutil"
|
name = "github.com/shirou/gopsutil"
|
||||||
packages = [
|
packages = [
|
||||||
"cpu",
|
|
||||||
"host",
|
"host",
|
||||||
"internal/common",
|
"internal/common",
|
||||||
"mem",
|
|
||||||
"net",
|
|
||||||
"process"
|
"process"
|
||||||
]
|
]
|
||||||
revision = "1c49dd8c6f1ec1a36ff6e98cc6ddda727a800219"
|
revision = "63728fcf6b24475ecfea044e22242447666c2f52"
|
||||||
|
|
||||||
[[projects]]
|
|
||||||
branch = "master"
|
|
||||||
name = "github.com/shirou/w32"
|
|
||||||
packages = ["."]
|
|
||||||
revision = "bb4de0191aa41b5507caa14b0650cdbddcd9280b"
|
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/valyala/fasthttp"
|
name = "github.com/valyala/fasthttp"
|
||||||
|
@ -189,7 +180,7 @@
|
||||||
"unix",
|
"unix",
|
||||||
"windows"
|
"windows"
|
||||||
]
|
]
|
||||||
revision = "151529c776cdc58ddbe7963ba9af779f3577b419"
|
revision = "1b2967e3c290b7c545b3db0deeda16e9be4f98a2"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "gopkg.in/yaml.v2"
|
name = "gopkg.in/yaml.v2"
|
||||||
|
|
|
@ -49,14 +49,14 @@ func (s *MetricService) StartService() error {
|
||||||
return fmt.Errorf("MetricService: StartService failed %v", err)
|
return fmt.Errorf("MetricService: StartService failed %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
//s.connector = connector
|
s.connector = connector
|
||||||
//
|
|
||||||
//readChan, writeChan, err := s.connector.Connect()
|
readChan, writeChan, err := s.connector.Connect()
|
||||||
//if nil != err {
|
if nil != err {
|
||||||
// return fmt.Errorf("MetricService: StartService failed %v", err)
|
return fmt.Errorf("MetricService: StartService failed %v", err)
|
||||||
//}
|
}
|
||||||
//s.readChan = readChan
|
s.readChan = readChan
|
||||||
//s.writeChan = writeChan
|
s.writeChan = writeChan
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -76,8 +76,8 @@ func (s *MetricService) Send(metric *ocmd.Metric) error {
|
||||||
if nil != err {
|
if nil != err {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// s.MetricService.Send("MS", sensorConfigID, metric)
|
//s.MetricService.Send("MS", metric.SensorID, metric)
|
||||||
// logging.Logger().Debugf("Metric: %v", metric)
|
logging.Logger().Debugf("Metric: %v", metric)
|
||||||
s.writeChan <- css.MakeSocketMessage(css.TextMessage, buff)
|
s.writeChan <- css.MakeSocketMessage(css.TextMessage, buff)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue
Block a user