github.com/vipernet-xyz/tm@v0.34.24/docs/tendermint-core/metrics.md (about)

     1  ---
     2  order: 5
     3  ---
     4  
     5  # Metrics
     6  
     7  Tendermint can report and serve the Prometheus metrics, which in their turn can
     8  be consumed by Prometheus collector(s).
     9  
    10  This functionality is disabled by default.
    11  
    12  To enable the Prometheus metrics, set `instrumentation.prometheus=true` in your
    13  config file. Metrics will be served under `/metrics` on 26660 port by default.
    14  Listen address can be changed in the config file (see
    15  `instrumentation.prometheus\_listen\_addr`).
    16  
    17  ## List of available metrics
    18  
    19  The following metrics are available:
    20  
    21  | **Name**                                 | **Type**  | **Tags**          | **Description**                                                        |
    22  |------------------------------------------|-----------|-------------------|------------------------------------------------------------------------|
    23  | `consensus_height`                       | Gauge     |                   | Height of the chain                                                    |
    24  | `consensus_validators`                   | Gauge     |                   | Number of validators                                                   |
    25  | `consensus_validators_power`             | Gauge     |                   | Total voting power of all validators                                   |
    26  | `consensus_validator_power`              | Gauge     |                   | Voting power of the node if in the validator set                       |
    27  | `consensus_validator_last_signed_height` | Gauge     |                   | Last height the node signed a block, if the node is a validator        |
    28  | `consensus_validator_missed_blocks`      | Gauge     |                   | Total amount of blocks missed for the node, if the node is a validator |
    29  | `consensus_missing_validators`           | Gauge     |                   | Number of validators who did not sign                                  |
    30  | `consensus_missing_validators_power`     | Gauge     |                   | Total voting power of the missing validators                           |
    31  | `consensus_byzantine_validators`         | Gauge     |                   | Number of validators who tried to double sign                          |
    32  | `consensus_byzantine_validators_power`   | Gauge     |                   | Total voting power of the byzantine validators                         |
    33  | `consensus_block_interval_seconds`       | Histogram |                   | Time between this and last block (Block.Header.Time) in seconds        |
    34  | `consensus_rounds`                       | Gauge     |                   | Number of rounds                                                       |
    35  | `consensus_num_txs`                      | Gauge     |                   | Number of transactions                                                 |
    36  | `consensus_total_txs`                    | Gauge     |                   | Total number of transactions committed                                 |
    37  | `consensus_block_parts`                  | Counter   | `peer_id`         | Number of blockparts transmitted by peer                               |
    38  | `consensus_latest_block_height`          | Gauge     |                   | /status sync\_info number                                              |
    39  | `consensus_fast_syncing`                 | Gauge     |                   | Either 0 (not fast syncing) or 1 (syncing)                             |
    40  | `consensus_state_syncing`                | Gauge     |                   | Either 0 (not state syncing) or 1 (syncing)                            |
    41  | `consensus_block_size_bytes`             | Gauge     |                   | Block size in bytes                                                    |
    42  | `p2p_message_send_bytes_total`           | Counter   | `message_type`    | Number of bytes sent to all peers per message type                     |
    43  | `p2p_message_receive_bytes_total`        | Counter   | `message_type`    | Number of bytes received from all peers per message type               |
    44  | `p2p_peers`                              | Gauge     |                   | Number of peers node's connected to                                    |
    45  | `p2p_peer_receive_bytes_total`           | Counter   | `peer_id`, `chID` | Number of bytes per channel received from a given peer                 |
    46  | `p2p_peer_send_bytes_total`              | Counter   | `peer_id`, `chID` | Number of bytes per channel sent to a given peer                       |
    47  | `p2p_peer_pending_send_bytes`            | Gauge     | `peer_id`         | Number of pending bytes to be sent to a given peer                     |
    48  | `p2p_num_txs`                            | Gauge     | `peer_id`         | Number of transactions submitted by each peer\_id                      |
    49  | `p2p_pending_send_bytes`                 | Gauge     | `peer_id`         | Amount of data pending to be sent to peer                              |
    50  | `mempool_size`                           | Gauge     |                   | Number of uncommitted transactions                                     |
    51  | `mempool_tx_size_bytes`                  | Histogram |                   | Transaction sizes in bytes                                             |
    52  | `mempool_failed_txs`                     | Counter   |                   | Number of failed transactions                                          |
    53  | `mempool_recheck_times`                  | Counter   |                   | Number of transactions rechecked in the mempool                        |
    54  | `state_block_processing_time`            | Histogram |                   | Time between BeginBlock and EndBlock in ms                             |
    55  
    56  ## Useful queries
    57  
    58  Percentage of missing + byzantine validators:
    59  
    60  ```md
    61  ((consensus\_byzantine\_validators\_power + consensus\_missing\_validators\_power) / consensus\_validators\_power) * 100
    62  ```