[release] v0.12.4
This commit is contained in:
parent
585780e26f
commit
ec66cc7692
|
@ -1,3 +1,6 @@
|
|||
## Version 0.12.4
|
||||
- Fix crash with metrics not seeing any network interface
|
||||
|
||||
## Version 0.12.3
|
||||
- Performance update for metrics saving
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "cosmos-server",
|
||||
"version": "0.12.3",
|
||||
"version": "0.12.4",
|
||||
"description": "",
|
||||
"main": "test-server.js",
|
||||
"bugs": {
|
||||
|
|
|
@ -90,6 +90,11 @@ func GetSystemMetrics() {
|
|||
// utils.Debug("Metrics - Network " + v.Name + " : " + strconv.Itoa(int(v.BytesRecv)) + " / " + strconv.Itoa(int(v.BytesSent)) + " / " + strconv.Itoa(int(v.Errin + v.Errout)) + " / " + strconv.Itoa(int(v.Dropin + v.Dropout)))
|
||||
// }
|
||||
|
||||
if err != nil {
|
||||
utils.Error("Metrics - Error fetching Network usage:", err)
|
||||
return
|
||||
}
|
||||
|
||||
PushSetMetric("system.netRx", int(netIO[0].BytesRecv), DataDef{
|
||||
Max: 0,
|
||||
Period: time.Second * 30,
|
||||
|
@ -168,6 +173,11 @@ func GetSystemMetrics() {
|
|||
|
||||
// Temperature
|
||||
temps, err := host.SensorsTemperatures()
|
||||
if err != nil {
|
||||
utils.Error("Metrics - Error fetching Temperature:", err)
|
||||
return
|
||||
}
|
||||
|
||||
avgTemp := 0
|
||||
avgTempCount := 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue