Skip to content

Optimum Gateway Metrics Reference

Message Flow (libP2P <-> mumP2P)

Metric NameTypeLabelsHow It’s CalculatedGoal
optp2p_gateway_optimum_gateway_libp2p_total_messagesCounternoneIncremented whenever any libp2p message is deliveredTotal throughput of libp2p→gateway messages
optp2p_gateway_optimum_gateway_libp2p_published_messages_per_topic_totalCounterVectopicIncremented per-topic in LibP2PTotalMessagesInc(topic)Track traffic per gossip topic
optp2p_gateway_optimum_gateway_optimum_total_messagesCounternoneIncremented when delivered to any mumP2P topicTotal throughput of gateway→Optimum network msgs
optp2p_gateway_optimum_gateway_optimum_published_messages_per_topic_totalCounterVectopicIncremented per-topic in MumP2PTotalMessagesInc(topic)Track mumP2P protocol topic activity

Aggregation / Batching

Metric NameTypeLabelsHow It’s CalculatedGoal
optp2p_gateway_optimum_gateway_aggregation_included_totalCounternoneAdded by number of messages included per flushTotal batched messages across all topics
optp2p_gateway_optimum_gateway_aggregation_included_per_topic_totalCounterVectopicSame as above but per-topicMeasure batching efficiency per topic
optp2p_gateway_optimum_gateway_aggregation_messages_totalCounterVecdirectionIncremented in IncAggregationMessageCount messages seen by aggregation topic
optp2p_gateway_optimum_gateway_aggregation_message_size_bytesHistogramVecdirectionMessage size observed into buckets (64B–1.6MB)Distribution of aggregation msg sizes

Latency

Metric NameTypeLabelsHow It’s CalculatedGoal
optp2p_gateway_optimum_gateway_libp2p_propagation_latencyGaugeVectopicSet to most recent latency (now - msg.timestamp)Real-time view of last observed latency
optp2p_gateway_optimum_gateway_libp2p_propagation_latency_millisecondsHistogramVectopicObserved latency in buckets [1ms–16s]Distribution of gossip propagation delays
optp2p_gateway_optimum_gateway_eth_latencyGaugeVectopicDirectly set in SetEthLatency(topic, ms)Cross-gateway spread latency (consistency)
optp2p_gateway_optimum_gateway_block_arrival_latency_msHistogramVecslotObserved between slot start & block arrivalSlot-level timing of block reception
optp2p_gateway_optimum_gateway_eth_block_latency_msHistogramVectopicObserved for beacon_block messagesBlock gossip latency distribution
optp2p_gateway_optimum_gateway_eth_attestation_latency_msHistogramVectopicObserved for attestation subnetsAttestation gossip latency
optp2p_gateway_optimum_gateway_eth_other_latency_msHistogramVectopicObserved for sync/metadata/other gossipOther ETH gossip latency
optp2p_gateway_optimum_gateway_beacon_block_propagation_msHistogramVecslot, sourceObserved per block per sourceBlock propagation analysis per slot/source

Message Size

Metric NameTypeLabelsHow It’s CalculatedGoal
optp2p_gateway_optimum_gateway_message_size_bytesHistogramVectopicEach received message size observed (256B–1.1MB buckets)Size distribution per topic
optp2p_gateway_optimum_gateway_message_size_maxGaugeVectopicMax of samples in last 5s (reset window)Peak message size recently observed
optp2p_gateway_optimum_gateway_message_size_minGaugeVectopicMin of samples in last 5sSmallest recent message size
optp2p_gateway_optimum_gateway_message_size_avgGaugeVectopicArithmetic mean of samples in last 5sRolling average message size
optp2p_gateway_optimum_gateway_message_size_meanGaugeVectopicMedian of samples in last 5sTypical size (less skewed by outliers)

Peer Connectivity

Metric NameTypeLabelsHow It’s CalculatedGoal
optp2p_gateway_optimum_gateway_cl_peersGaugenoneSet via SetCLPeers(count)Monitor CL peer connectivity
optp2p_gateway_optimum_gateway_opt_peersGaugenoneSet via SetOptPeers(count)Monitor Optimum network peer connectivity
optp2p_gateway_optimum_gateway_cl_peer_connected_totalCounternoneIncremented when CL peer connectsTrack peer connection churn
optp2p_gateway_optimum_gateway_cl_peer_disconnected_totalCounternoneIncremented when CL peer disconnectsTrack peer disconnections
optp2p_gateway_optimum_gateway_opt_peer_connected_totalCounternoneIncremented when Optimum network peer connectsTrack Optimum network connections
optp2p_gateway_optimum_gateway_opt_peer_disconnected_totalCounternoneIncremented when Optimum network peer disconnectsTrack Optimum network disconnections

Error / Quality Metrics

Metric NameTypeLabelsHow It’s CalculatedGoal
optp2p_gateway_optimum_gateway_bad_messages_to_cl_totalCounternoneIncremented on malformed messages → CL nodesTrack rejected/bad deliveries

System / Build Info

Metric NameTypeLabels (version,commit,go,gateway_id)How It’s CalculatedGoal
optp2p_gateway_optimum_gateway_app_build_infoGaugeconst labelsSet to 1 at startupBuild/version info marker for dashboards