Skip to content

Add dashboards for new metrics (# 2) #334

Open

Activity

  1. added
    metrics-tool
    on Jan 6, 2026
  2. added theissue type on Jan 6, 2026
  3. changed the title [-]Add dashboards for new metrics (2)[/-] [+]Add dashboards for new metrics (# 2)[/+] on Jan 9, 2026
  4. self-assigned this
    on Jan 21, 2026
  5. 0xB10C commented on Sep 17, 2026

    @0xB10C
    CollaboratorAuthor

    from @b10claude


    I diffed the metrics defined in tools/metrics/src/metrics.rs on current master (84ba89a) against every peerobserver_* name referenced in tools/metrics/dashboards/**/*.json (histograms matched on _bucket/_sum/_count; the recording rules in tools/metrics/prometheus/rules/ only consume metrics that dashboards already use). 114 of 184 metrics have no dashboard. Grouped by the PR that added them:

    PRs already listed in this issue

    #312 getchaintxstats (none of the 6 have a dashboard)

    • rpc_chaintxstats_tx_count
    • rpc_chaintxstats_tx_rate
    • rpc_chaintxstats_window_block_count
    • rpc_chaintxstats_window_final_block_height
    • rpc_chaintxstats_window_interval
    • rpc_chaintxstats_window_tx_count

    #335 2026 LinkingLion IPs

    • rpc_peer_info_list_peers_linkinglion_pre2026 (the existing LinkingLion dashboards only use rpc_peer_info_list_peers_linkinglion)

    #321 getblockchaininfo (none of the 10)

    • rpc_blockchaininfo_blocks
    • rpc_blockchaininfo_headers
    • rpc_blockchaininfo_difficulty
    • rpc_blockchaininfo_verification_progress
      PRs already listed in this issue

    #312 getchaintxstats (none of the 6 have a dashboard)

    • rpc_chaintxstats_tx_count
    • rpc_chaintxstats_tx_rate
    • rpc_chaintxstats_window_block_count
    • rpc_chaintxstats_window_final_block_height
    • rpc_chaintxstats_window_interval
    • rpc_chaintxstats_window_tx_count

    #335 2026 LinkingLion IPs

    • rpc_peer_info_list_peers_linkinglion_pre2026 (the existing LinkingLion dashboards only use rpc_peer_inf

    #321 getblockchaininfo (none of the 10)

    • rpc_blockchaininfo_blocks
    • rpc_blockchaininfo_headers
    • rpc_blockchaininfo_difficulty
    • rpc_blockchaininfo_verification_progress
    • rpc_blockchaininfo_initial_block_download
    • rpc_blockchaininfo_size_on_disk
    • rpc_blockchaininfo_pruned
    • rpc_blockchaininfo_prune_height
    • rpc_blockchaininfo_prune_target_size
    • rpc_blockchaininfo_warnings

    #319 getnetworkinfo (none of the 12)

    • rpc_networkinfo_version
    • rpc_networkinfo_protocol_version
    • rpc_networkinfo_connections, rpc_networkinfo_connections_in, rpc_networkinfo_connections_out
    • rpc_networkinfo_networks (labels: network, property)
    • rpc_networkinfo_network_active
    • rpc_networkinfo_local_addresses_count
    • rpc_networkinfo_relay_fee, rpc_networkinfo_incremental_fee
    • rpc_networkinfo_time_offset
    • rpc_networkinfo_warnings

    #340 getorphantxs (none of the 11)

    • rpc_getorphantxs_count, rpc_getorphantxs_bytes, rpc_getorphantxs_vsize, rpc_getorphantxs_weight
    • rpc_getorphantxs_added_count, rpc_getorphantxs_added_bytes
    • rpc_getorphantxs_removed_count, rpc_getorphantxs_removed_bytes
    • rpc_getorphantxs_from_min, rpc_getorphantxs_from_mean, rpc_getorphantxs_from_max

    Merged PRs not yet listed here

    #345 getrawaddrman (none of the 10)

    • rpc_getrawaddrman_added_entry, rpc_getrawaddrman_replaced_entry
    • rpc_getrawaddrman_changed_services, rpc_getrawaddrman_changed_timestamps
    • rpc_getrawaddrman_distinct_asns, rpc_getrawaddrman_distinct_source_asn, rpc_getrawaddrman_distinct_sources
    • rpc_getrawaddrman_ports, rpc_getrawaddrman_service_bits, rpc_getrawaddrman_services

    #420 compact block reconstruction via log-extractor (none of the 5)

    • log_compact_block_reconstruction_count (labels: tx_requested, bandwidth)
    • log_compact_block_reconstruction_time (labels: tx_requested, bandwidth)
    • log_compact_block_reconstruction_txs_requested
    • log_compact_block_reconstruction_txs_extra_pool
    • log_compact_block_reconstruction_requested_bytes

    #379 IPC extractor

    • ipc_block_tip_height

    #352 private transaction broadcast connections

    • conn_private_transaction_broadcast

    #309 getmemoryinfo / getaddrmaninfo (addrmaninfo has a dashboard, memoryinfo does not)

    • rpc_memoryinfo_locked_used, rpc_memoryinfo_locked_free, rpc_memoryinfo_locked_total, rpc_memoryinfo_locked_locked
    • rpc_memoryinfo_locked_chunks_used, rpc_memoryinfo_locked_chunks_free

    #299 inv_to_send and cpu_load (invtosend_sum and invtosend_max have a dashboard, the rest do not)

    • rpc_peer_info_invtosend_min, rpc_peer_info_invtosend_mean, rpc_peer_info_invtosend_median
    • rpc_peer_info_cpuload_min, rpc_peer_info_cpuload_mean, rpc_peer_info_cpuload_median, rpc_peer_info_cpuld_sum

    #296 AddressAnnouncement events (the other addrv2relay metrics have dashboards)

    • p2pextractor_addrv2relay_messages_10_or_less_entries

    #287 mutated blocks (log_mutated_blocks has a dashboard)

    • log_block_checked_events

    #272 log extractor

    • log_block_connected_events

    #269 getmempoolinfo (from #257; memory_usage, memory_max, min_mempool_feerate and transaction_vbyte have dash

    • rpc_mempoolinfo_transaction_count
    • rpc_mempoolinfo_transaction_fees
    • rpc_mempoolinfo_mempool_loaded
    • rpc_mempoolinfo_min_relay_tx_feerate
    • rpc_mempoolinfo_incremental_relay_feerate

    #235 large inv sets

    • p2p_invs_outbound_large

    Older metrics (predate #257) without a dashboard

    Listing these for completeness; some may not need one.

    • conn: conn_inbound, conn_outbound, conn_inbound_network, conn_outbound_network, conn_evicted_inbound, conn__reason, conn_inbound_banlist_gmax, conn_inbound_banlist_monero, conn_inbound_tor_exit,conn_inbound_list_linkinglion (the dashboards use the rpc_peer_info_* gauges for the list/banlist views, no
    • mempool: mempool_removed (by reason), mempool_replaced, mempool_replaced_vbytes
    • addr: p2p_addr_services, p2p_addrv2_services, p2p_addr_timestamp_offset_seconds, p2p_addrv2_timestamp_offse
    • inv: p2p_inv_entries, p2p_inv_entries_histogram, p2p_invs_homogeneous, p2p_invs_heterogeneous
    • other p2p: p2p_feefilter_feerate, p2p_version_useragent, p2p_oldping_subnet, p2p_reject_message
    • validation: validation_block_connected_connection_time, validation_block_connected_latest_transactions, valt_inputs, validation_block_connected_latest_sigops
    • getpeerinfo: rpc_peer_info_minping_mean, rpc_peer_info_minping_median
    • runtime_start_timestamp

    One caveat: this only checks the dashboards committed to the repo. Any temporary dashboards you keep in your d in #257, aren't visible to me. I'd also flag two definition bugs I noticed on the way, since they'd affect
    any orphanage dashboard: rpc_getorphantxs_weight reuses the vsize description text, and the removed_* descriphanage".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

metrics-tool

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions