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 if 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:

NameTypeSinceTagsDescription
consensus_heightGauge0.21.0Height of the chain
consensus_validatorsGauge0.21.0Number of validators
consensus_validators_powerGauge0.21.0Total voting power of all validators
consensus_missing_validatorsGauge0.21.0Number of validators who did not sign
consensus_missing_validators_powerGauge0.21.0Total voting power of the missing validators
consensus_byzantine_validatorsGauge0.21.0Number of validators who tried to double sign
consensus_byzantine_validators_powerGauge0.21.0Total voting power of the byzantine validators
consensus_block_interval_secondsHistogram0.21.0Time between this and last block (Block.Header.Time) in seconds
consensus_roundsGauge0.21.0Number of rounds
consensus_num_txsGauge0.21.0Number of transactions
consensus_block_partscounteron devpeer_idnumber of blockparts transmitted by peer
consensus_latest_block_heightgaugeon dev/status sync_info number
consensus_fast_syncinggaugeon deveither 0 (not fast syncing) or 1 (syncing)
consensus_total_txsGauge0.21.0Total number of transactions committed
consensus_block_size_bytesGauge0.21.0Block size in bytes
p2p_peersGauge0.21.0Number of peers node's connected to
p2p_peer_receive_bytes_totalcounteron devpeer_idnumber of bytes received from a given peer
p2p_peer_send_bytes_totalcounteron devpeer_idnumber of bytes sent to a given peer
p2p_peer_pending_send_bytesgaugeon devpeer_idnumber of pending bytes to be sent to a given peer
p2p_num_txsgaugeon devpeer_idnumber of transactions submitted by each peer_id
p2p_pending_send_bytesgaugeon devpeer_idamount of data pending to be sent to peer
mempool_sizeGauge0.21.0Number of uncommitted transactions
mempool_tx_size_byteshistogramon devtransaction sizes in bytes
mempool_failed_txscounteron devnumber of failed transactions
mempool_recheck_timescounteron devnumber of transactions rechecked in the mempool
state_block_processing_timehistogramon devtime between BeginBlock and EndBlock in ms

Useful queries

Percentage of missing + byzantine validators:

((consensus\_byzantine\_validators\_power + consensus\_missing\_validators\_power) / consensus\_validators\_power) * 100
1
Last Updated: 8/12/2018, 11:47:47 AM