include packet and system info with node stats (#92)

* include packet and system info with node stats

* add more packet and system stats

* revert magefile, clean up system stats error handling

* update procol version

* dz review: error return
This commit is contained in:
Mathew Kamkar authored and GitHub committed 2021-08-25 12:04:28 -07:00
1 parent f5466c74e6
commit f9590afe1a
7 files changed
+133 -28

No files matched your search

+3 -1
View File
@@ -309,7 +309,9 @@ func (r *RedisRouter) statsWorker() {
// update periodically seconds
select {
case <-time.After(statsUpdateInterval):
stats.UpdateCurrentNodeStats(r.currentNode.Stats)
if err := stats.UpdateCurrentNodeStats(r.currentNode.Stats); err != nil {
logger.Errorw("could not update node stats", err, "nodeID", r.currentNode.Id)
}
if err := r.RegisterNode(); err != nil {
logger.Errorw("could not update node", err, "nodeID", r.currentNode.Id)
}