# Metrics

Tendermint can report and serve the Prometheus metrics, which in their turn can be consumed by Prometheus collector(s).

This functionality is disabled by default.

To enable the Prometheus metrics, set instrumentation.prometheus=true in your config file. Metrics will be served under /metrics on 26660 port by default. Listen address can be changed in the config file (see instrumentation.prometheus\_listen\_addr).

# List of available metrics

The following metrics are available:

Name Type Tags Description
abci_connection_method_timing Histogram method, type Timings for each of the ABCI methods
consensus_height Gauge Height of the chain
consensus_validators Gauge Number of validators
consensus_validators_power Gauge Total voting power of all validators
consensus_validator_power Gauge Voting power of the node if in the validator set
consensus_validator_last_signed_height Gauge Last height the node signed a block, if the node is a validator
consensus_validator_missed_blocks Gauge Total amount of blocks missed for the node, if the node is a validator
consensus_missing_validators Gauge Number of validators who did not sign
consensus_missing_validators_power Gauge Total voting power of the missing validators
consensus_byzantine_validators Gauge Number of validators who tried to double sign
consensus_byzantine_validators_power Gauge Total voting power of the byzantine validators
consensus_block_interval_seconds Histogram Time between this and last block (Block.Header.Time) in seconds
consensus_rounds Gauge Number of rounds
consensus_num_txs Gauge Number of transactions
consensus_total_txs Gauge Total number of transactions committed
consensus_block_parts counter peer_id number of blockparts transmitted by peer
consensus_latest_block_height gauge /status sync_info number
consensus_fast_syncing gauge either 0 (not fast syncing) or 1 (syncing)
consensus_state_syncing gauge either 0 (not state syncing) or 1 (syncing)
consensus_block_size_bytes Gauge Block size in bytes
p2p_peers Gauge Number of peers node's connected to
p2p_peer_receive_bytes_total Counter peer_id, chID number of bytes per channel received from a given peer
p2p_peer_send_bytes_total Counter peer_id, chID number of bytes per channel sent to a given peer
p2p_peer_pending_send_bytes Gauge peer_id number of pending bytes to be sent to a given peer
p2p_router_peer_queue_recv Histogram The time taken to read off of a peer's queue before sending on the connection
p2p_router_peer_queue_send Histogram The time taken to send on a peer's queue which will later be sent on the connection
p2p_router_channel_queue_send Histogram The time taken to send on a p2p channel's queue which will later be consumed by the corresponding service
p2p_router_channel_queue_dropped_msgs Counter ch_id The number of messages dropped from a peer's queue for a specific p2p channel
p2p_peer_queue_msg_size Gauge ch_id The size of messages sent over a peer's queue for a specific p2p channel
mempool_size Gauge Number of uncommitted transactions
mempool_tx_size_bytes histogram transaction sizes in bytes
mempool_failed_txs counter number of failed transactions
mempool_recheck_times counter number of transactions rechecked in the mempool
state_block_processing_time histogram time between BeginBlock and EndBlock in ms

# Useful queries

Percentage of missing + byzantine validators:

Copy ((consensus_byzantine_validators_power + consensus_missing_validators_power) / consensus_validators_power) * 100

Rate at which the application is responding to each ABCI method call.

Copy sum(rate(tendermint_abci_connection_method_timing_count[5m])) by (method)

The 95th percentile response time for the application to the deliver_tx ABCI method call.

Copy histogram_quantile(0.95, sum by(le) (rate(tendermint_abci_connection_method_timing_bucket{method="deliver_tx"}[5m])))