You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/apollo_network_benchmark/src/bin/broadcast_network_stress_test_node/metrics.rs
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,5 +18,11 @@ define_metrics!(
18
18
MetricGauge{SYSTEM_PROCESS_CPU_USAGE_PERCENT,"system_process_cpu_usage_percent","CPU usage percentage of the current process"},
19
19
MetricGauge{SYSTEM_PROCESS_MEMORY_USAGE_BYTES,"system_process_memory_usage_bytes","Memory usage in bytes of the current process"},
20
20
MetricGauge{SYSTEM_PROCESS_VIRTUAL_MEMORY_USAGE_BYTES,"system_process_virtual_memory_usage_bytes","Virtual memory usage in bytes of the current process"},
21
+
22
+
// system metrics for network usage
23
+
MetricGauge{SYSTEM_NETWORK_BYTES_SENT_TOTAL,"system_network_bytes_sent_total","Total bytes sent across all network interfaces since system start"},
24
+
MetricGauge{SYSTEM_NETWORK_BYTES_RECEIVED_TOTAL,"system_network_bytes_received_total","Total bytes received across all network interfaces since system start"},
25
+
MetricGauge{SYSTEM_NETWORK_BYTES_SENT_CURRENT,"system_network_bytes_sent_current","Bytes sent across all network interfaces since last measurement"},
26
+
MetricGauge{SYSTEM_NETWORK_BYTES_RECEIVED_CURRENT,"system_network_bytes_received_current","Bytes received across all network interfaces since last measurement"},
0 commit comments