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
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ use apollo_metrics::metrics::LossyIntoF64;
6
6
use apollo_network::metrics::{
7
7
BroadcastNetworkMetrics,
8
8
NetworkMetrics,
9
+
SqmrNetworkMetrics,
9
10
NETWORK_BROADCAST_DROP_LABELS,
10
11
};
11
12
@@ -28,10 +29,11 @@ define_metrics!(
28
29
// network metrics from the network manager
29
30
MetricGauge{NETWORK_CONNECTED_PEERS,"network_connected_peers","Number of connected peers in the network"},
30
31
MetricGauge{NETWORK_BLACKLISTED_PEERS,"network_blacklisted_peers","Number of blacklisted peers in the network"},
32
+
MetricGauge{NETWORK_ACTIVE_INBOUND_SESSIONS,"network_active_inbound_sessions","Number of active inbound SQMR sessions"},
33
+
MetricGauge{NETWORK_ACTIVE_OUTBOUND_SESSIONS,"network_active_outbound_sessions","Number of active outbound SQMR sessions"},
31
34
MetricCounter{NETWORK_STRESS_TEST_SENT_MESSAGES,"network_stress_test_sent_messages","Number of stress test messages sent via broadcast", init = 0},
32
35
MetricCounter{NETWORK_STRESS_TEST_RECEIVED_MESSAGES,"network_stress_test_received_messages","Number of stress test messages received via broadcast", init = 0},
33
36
LabeledMetricCounter{NETWORK_DROPPED_BROADCAST_MESSAGES,"network_dropped_broadcast_messages","Number of dropped broadcast messages by reason", init = 0, labels = NETWORK_BROADCAST_DROP_LABELS},
34
-
35
37
// system metrics for the node
36
38
MetricGauge{SYSTEM_TOTAL_MEMORY_BYTES,"system_total_memory_bytes","Total system memory in bytes"},
37
39
MetricGauge{SYSTEM_AVAILABLE_MEMORY_BYTES,"system_available_memory_bytes","Available system memory in bytes"},
0 commit comments