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.

42 lines
3.0 KiB

6 years ago
6 years ago
6 years ago
  1. # Metrics
  2. Tendermint can report and serve the Prometheus metrics, which in their turn can
  3. be consumed by Prometheus collector(s).
  4. This functionality is disabled by default.
  5. To enable the Prometheus metrics, set `instrumentation.prometheus=true` if your
  6. config file. Metrics will be served under `/metrics` on 26660 port by default.
  7. Listen address can be changed in the config file (see
  8. `instrumentation.prometheus_listen_addr`).
  9. ## List of available metrics
  10. The following metrics are available:
  11. ```
  12. | Name | Type | Since | Description |
  13. | --------------------------------------- | ------- | --------- | ----------------------------------------------------------------------------- |
  14. | consensus_height | Gauge | 0.21.0 | Height of the chain |
  15. | consensus_validators | Gauge | 0.21.0 | Number of validators |
  16. | consensus_validators_power | Gauge | 0.21.0 | Total voting power of all validators |
  17. | consensus_missing_validators | Gauge | 0.21.0 | Number of validators who did not sign |
  18. | consensus_missing_validators_power | Gauge | 0.21.0 | Total voting power of the missing validators |
  19. | consensus_byzantine_validators | Gauge | 0.21.0 | Number of validators who tried to double sign |
  20. | consensus_byzantine_validators_power | Gauge | 0.21.0 | Total voting power of the byzantine validators |
  21. | consensus_block_interval_seconds | Histogram | 0.21.0 | Time between this and last block (Block.Header.Time) in seconds |
  22. | consensus_rounds | Gauge | 0.21.0 | Number of rounds |
  23. | consensus_num_txs | Gauge | 0.21.0 | Number of transactions |
  24. | mempool_size | Gauge | 0.21.0 | Number of uncommitted transactions |
  25. | consensus_total_txs | Gauge | 0.21.0 | Total number of transactions committed |
  26. | consensus_block_size_bytes | Gauge | 0.21.0 | Block size in bytes |
  27. | p2p_peers | Gauge | 0.21.0 | Number of peers node's connected to |
  28. ```
  29. ## Useful queries
  30. Percentage of missing + byzantine validators:
  31. ```
  32. ((consensus_byzantine_validators_power + consensus_missing_validators_power) / consensus_validators_power) * 100
  33. ```