You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
5.1 KiB

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