Skip to content

Optimum Gateway Metrics

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

All gateway metrics carry these global labels: gateway_id, gateway_cluster_id, and org_id. Gateways also inherit the metadata labels set on your API key (for example gateway_label, and any Region / Consensus Client / Hosting Provider details you selected when generating the key).

Metric prefix: all gateway metrics are prefixed mump2p_gateway_. (Earlier releases used the optp2p_gateway_optimum_gateway_ prefix — update any saved dashboards or queries.)

Build & Identity

MetricTypeLabelsDescription
mump2p_gateway_app_build_infoGaugeversion, commit, go, public_ip, paired_withBuild and identity info (value always 1)
mump2p_gateway_known_validators_totalGaugeNumber of validator indices synced from the API key / bootstrap

Health

MetricTypeDescription
mump2p_gateway_cl_health_statusGaugeCL health: 1 = healthy (gossip seen in last 30s), 0 = degraded
mump2p_gateway_mump2p_health_statusGaugemump2p health: 1 = healthy (mesh traffic in last 30s), 0 = degraded

Peers

MetricTypeLabelsDescription
mump2p_gateway_cl_peersGaugeCL peers connected to the gateway
mump2p_gateway_mump2p_peersGaugemump2p peers connected to the gateway
mump2p_gateway_cl_peers_per_topicGaugetopicCL peers connected per topic
mump2p_gateway_mump2p_peers_per_topicGaugetopicmump2p peers connected per topic
mump2p_gateway_cl_mesh_peerGaugetopic, peer_idCL peers in the GossipSub mesh per topic (1 per peer)
mump2p_gateway_mump2p_mesh_peerGaugetopic, peer_idmump2p peers in the mesh per topic (1 per peer)
mump2p_gateway_cl_peer_connected_totalCounterCumulative CL peer connections established
mump2p_gateway_cl_peer_disconnected_totalCounterCumulative CL peer disconnections
mump2p_gateway_mump2p_peer_connected_totalCounterCumulative mump2p peer connections established
mump2p_gateway_mump2p_peer_disconnected_totalCounterCumulative mump2p peer disconnections

Messages

MetricTypeLabelsDescription
mump2p_gateway_libp2p_messages_from_upstream_totalCounterlibp2p beacon blocks received from CL peers
mump2p_gateway_mump2p_messages_from_upstream_totalCountermump2p messages received from upstream peers
mump2p_gateway_mump2p_messages_from_origin_totalCountermump2p messages received from origin gateways
mump2p_gateway_mump2p_published_messages_per_topic_totalCountertopicMessages published to mump2p per topic
mump2p_gateway_libp2p_gossipsub_rpc_messages_totalCountertopic, peer_id, directionCL libp2p GossipSub RPC messages (direction: recv|send)
mump2p_gateway_bad_messages_to_cl_totalCounterdirectionBad/undeliverable messages (direction: cl|mum)
mump2p_gateway_processing_time_nanosecondsHistogramprocessPer-message processing duration (process: cl_processing|opt_processing)

Block Arrival & First-Seen

MetricTypeDescription
mump2p_gateway_block_arrival_mump2p_msHistogramBlock arrival latency via mump2p relative to slot start (ms)
mump2p_gateway_block_arrival_libp2p_msHistogramBlock arrival latency via libp2p relative to slot start (ms)
mump2p_gateway_blocks_first_seen_mump2p_totalCounterBlocks where mump2p delivered strictly before libp2p
mump2p_gateway_blocks_first_seen_libp2p_totalCounterBlocks where libp2p delivered before or equal to mump2p
mump2p_gateway_last_block_received_timestampGaugeUnix timestamp of the last beacon block received from any source

Attestations

MetricTypeLabelsDescription
mump2p_gateway_attestation_evaluated_totalCounterAttestations evaluated by the router (forwarded + dropped)
mump2p_gateway_attestation_forwarded_mump2p_totalCounterAttestations forwarded to mump2p after the router filter
mump2p_gateway_attestation_dropped_totalCounterreasonAttestations dropped by the router, by reason
mump2p_gateway_attestation_subnet_messages_totalCountersubnetAttestation messages received from CL per subnet index
mump2p_gateway_attestation_inclusion_delay_slotsHistogramSlot distance between attestation data.slot and the wall-clock slot at receive time
mump2p_gateway_attestation_propagation_latency_msHistogramEnd-to-end latency from sender gateway emit to receiver gateway decode (ms)

Attestation Packing

MetricTypeDescription
mump2p_gateway_attestation_pack_totalCounterAttestation messages successfully packed
mump2p_gateway_attestation_pack_errors_totalCounterAttestation messages that failed packing
mump2p_gateway_attestation_pack_itemsHistogramAttestation items per packed blob
mump2p_gateway_attestation_pack_size_bytesHistogramSize of emitted packed attestation blobs (bytes)
mump2p_gateway_attestation_pack_latency_msHistogramTime to encode and emit one attestation pack cycle (ms)
mump2p_gateway_attestation_pack_unique_data_keysHistogramUnique AttestationData hashes per pack cycle (dedup effectiveness)

Aggregation

MetricTypeLabelsDescription
mump2p_gateway_aggregation_messages_totalCounterdirectionMessages seen by the aggregation topic
mump2p_gateway_aggregation_message_size_bytesHistogramdirectionMessage sizes across aggregation (in/out/expand)
mump2p_gateway_aggregation_included_totalCounterMessages included in emitted aggregated protobufs
mump2p_gateway_aggregation_included_per_topic_totalCountertopicMessages included in emitted protobufs per topic

Authentication (API key / JWT)

MetricTypeLabelsDescription
mump2p_gateway_auth_token_mint_totalCounterresultJWT mint outcomes (result: success, unknown_key, revoked, suspended, forbidden, bad_status, network_error, empty_token, verify_failed)
mump2p_gateway_auth_token_expires_at_secondsGaugeUnix timestamp at which the current JWT expires (0 if never minted)

mump2p Trace (debug)

These are populated only when the corresponding trace flags are enabled (OPT_TRACE_MESH, OPT_TRACE_RPC, OPT_TRACE_SHARD). All labels are bounded — per-peer and per-message identifiers are deliberately not used.

MetricTypeLabelsDescription
mump2p_gateway_mump2p_trace_messages_totalCounterevent, topicMessage-lifecycle events (publish|deliver|duplicate|reject)
mump2p_gateway_mump2p_trace_message_rejects_totalCountertopic, reasonRejected messages by validation reason
mump2p_gateway_mump2p_trace_shards_totalCounterkindRLNC shard events (new|duplicate|unhelpful|unnecessary)
mump2p_gateway_mump2p_trace_shard_bytes_totalCounterkindRLNC shard coefficient bytes by kind
mump2p_gateway_mump2p_trace_rpc_totalCounterdirectionRPC events (recv|send|drop)
mump2p_gateway_mump2p_trace_rpc_bytes_totalCounterdirectionRPC bytes moved (recv|send)
mump2p_gateway_mump2p_trace_mesh_totalCounterevent, topicMesh-topology churn (add_peer|remove_peer|join|leave|graft|prune)

Process Metrics

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

Quick Checks

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

With a CL connected: mump2p_gateway_cl_peers ≥ 1, mump2p_gateway_mump2p_peers ≥ 1, and /health reports subscribed_topics = 65 (1 block + 64 attestation subnets).