Agent and websocket investigations work fine
This commit is contained in:
@@ -242,6 +242,9 @@ func (c *Collector) CreateMetricsRequest(agentID string, systemMetrics *types.Sy
|
||||
"load15": systemMetrics.LoadAvg15,
|
||||
},
|
||||
OSInfo: map[string]string{
|
||||
"cpu_cores": fmt.Sprintf("%d", systemMetrics.CPUCores),
|
||||
"memory": fmt.Sprintf("%.1fGi", float64(systemMetrics.MemoryTotal)/(1024*1024*1024)),
|
||||
"uptime": "unknown", // Will be calculated by the server or client
|
||||
"platform": systemMetrics.Platform,
|
||||
"platform_family": systemMetrics.PlatformFamily,
|
||||
"platform_version": systemMetrics.PlatformVersion,
|
||||
|
||||
Reference in New Issue
Block a user