mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-05 16:10:43 +00:00
@@ -41,7 +41,7 @@ pub struct NodeMetrics {
|
||||
/// Get the node running metrics
|
||||
pub fn get_node_metrics() -> NodeMetrics {
|
||||
let cpu_total = get_cpu_limit();
|
||||
let cpu_usage = get_cpu_usage();
|
||||
let cpu_usage = get_cpu_usage() / cpu_total as f32;
|
||||
let memory_total = get_memory_limit();
|
||||
let memory_usage = get_memory_usage();
|
||||
let tcp_conns = get_tcp_connections();
|
||||
|
||||
Reference in New Issue
Block a user