Skip to content

Optimum Gateway Metrics

Gateway Metrics

When telemetry_enable: true, metrics are exposed at http://localhost:48123/metrics.

All gateway metrics include the gateway_id and gateway_cluster_id labels.

Always Present (at startup)

MetricTypeDescription
optp2p_gateway_optimum_gateway_app_build_infoGaugeBuild info: version, commit, go, public_ip
optp2p_gateway_optimum_gateway_mump2p_peersGaugemump2p peers connected
optp2p_gateway_optimum_gateway_mump2p_peer_connected_totalCounterCumulative mump2p peer connections
optp2p_gateway_optimum_gateway_mump2p_peer_disconnected_totalCounterCumulative mump2p peer disconnections
optp2p_gateway_optimum_gateway_mump2p_peers_per_topicGaugemump2p peers per topic
optp2p_gateway_optimum_gateway_aggregation_included_totalCounterMessages included in emitted aggregated protobufs
optp2p_gateway_optimum_gateway_system_cpu_coresGaugeLogical CPU cores
optp2p_gateway_optimum_gateway_last_block_received_timestampGaugeUnix timestamp of last beacon block received

With CL Peer Connected

When a CL client connects to the gateway and subscribes to topics, these metrics appear:

MetricTypeLabelsDescription
optp2p_gateway_optimum_gateway_cl_peersGaugeCL peers connected to gateway
optp2p_gateway_optimum_gateway_cl_peer_connected_totalCounterCumulative CL peer connections
optp2p_gateway_optimum_gateway_cl_peers_per_topicGaugetopicCL peers connected per topic
optp2p_gateway_optimum_gateway_cl_mesh_peerGaugetopicCL peers in GossipSub mesh per topic
optp2p_gateway_optimum_gateway_mump2p_mesh_peerGaugetopicmump2p peers in mesh per topic
optp2p_gateway_optimum_gateway_libp2p_messages_from_upstream_totalCounterTotal libp2p beacon blocks received from CL peers
optp2p_gateway_optimum_gateway_mump2p_messages_from_origin_totalCounterMessages received from each origin gateway
optp2p_gateway_optimum_gateway_mump2p_messages_from_upstream_totalCounterMessages received from each upstream mump2p peer
optp2p_gateway_optimum_gateway_mump2p_published_messages_per_topic_totalCountertopicMessages published to mump2p per topic
optp2p_gateway_optimum_gateway_message_size_bytesHistogramtopicSize of messages received over libp2p
optp2p_gateway_optimum_gateway_processing_time_nanosecondsHistogramprocessProcessing duration; process is cl_processing or opt_processing

Block Arrival & First-Seen Metrics

When telemetry is enabled and both CL and mump2p paths are active, these metrics track per-block performance:

MetricTypeDescription
optp2p_gateway_optimum_gateway_block_arrival_mump2p_msHistogramBlock arrival latency via mump2p relative to slot start (ms)
optp2p_gateway_optimum_gateway_block_arrival_libp2p_msHistogramBlock arrival latency via libp2p relative to slot start (ms)
optp2p_gateway_optimum_gateway_blocks_first_seen_mump2p_totalCounterBlocks where mump2p delivered strictly before libp2p
optp2p_gateway_optimum_gateway_blocks_first_seen_libp2p_totalCounterBlocks where libp2p delivered before or equal to mump2p

Attestation Metrics (New in RC12)

MetricTypeLabelsDescription
optp2p_gateway_optimum_gateway_attestation_evaluated_totalCounterTotal attestations evaluated by the router
optp2p_gateway_optimum_gateway_attestation_forwarded_mump2p_totalCounterAttestations forwarded to mump2p after router filter
optp2p_gateway_optimum_gateway_attestation_dropped_totalCounterreasonAttestations dropped by the message router
optp2p_gateway_optimum_gateway_attestation_first_seen_mump2p_totalCounterAttestations where mump2p delivered before libp2p
optp2p_gateway_optimum_gateway_attestation_first_seen_libp2p_totalCounterAttestations where libp2p delivered before or equal to mump2p
optp2p_gateway_optimum_gateway_attestation_advantage_msHistogramTime difference (libp2p - mump2p) when mump2p wins (ms)
optp2p_gateway_optimum_gateway_attestation_arrival_in_slot_mump2p_msHistogramTime into slot when attestation arrived via mump2p (ms from slot start)
optp2p_gateway_optimum_gateway_attestation_arrival_in_slot_libp2p_msHistogramTime into slot when attestation arrived via libp2p (ms from slot start)
optp2p_gateway_optimum_gateway_attestation_inclusion_delay_slotsHistogramSlot distance between attestation data.slot and current wall-clock slot
optp2p_gateway_optimum_gateway_attestation_propagation_latency_msHistogramEnd-to-end latency from sender gateway emit to receiver gateway decode (ms)
optp2p_gateway_optimum_gateway_attestation_subnet_messages_totalCountersubnetAttestation messages received from CL per subnet index

Attestation Pack Metrics (New in RC12)

MetricTypeDescription
optp2p_gateway_optimum_gateway_attestation_pack_totalCounterAttestation messages successfully packed
optp2p_gateway_optimum_gateway_attestation_pack_errors_totalCounterAttestation messages that failed packing
optp2p_gateway_optimum_gateway_attestation_pack_itemsHistogramAttestation items per packed blob
optp2p_gateway_optimum_gateway_attestation_pack_size_bytesHistogramSize of emitted packed attestation blobs (bytes)
optp2p_gateway_optimum_gateway_attestation_pack_latency_msHistogramTime to encode and emit one attestation pack cycle (ms)
optp2p_gateway_optimum_gateway_attestation_pack_unique_data_keysHistogramUnique AttestationData hashes per pack cycle (dedup effectiveness)

Aggregation Metrics

MetricTypeLabelsDescription
optp2p_gateway_optimum_gateway_aggregation_message_size_bytesHistogramdirectionMessage sizes across aggregation (in/out/expand)
optp2p_gateway_optimum_gateway_aggregation_messages_totalCounterMessages seen by the aggregation topic

Geolocation

MetricTypeLabelsDescription
optp2p_gateway_det_coordinates_geo_locationGaugecountry, latitude, longitudeGateway geolocation coordinates

Process Metrics

Standard Go and process metrics (go_*, process_*) are exposed for resource monitoring.

Quick Checks

sh
curl -s http://localhost:48123/metrics | grep optp2p_gateway_optimum_gateway

With CL connected: cl_peers ≥ 1, mump2p_peers ≥ 1, subscribed_topics = 65 (1 block + 64 attestation subnets).