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.

40 lines
3.0 KiB

7 years ago
7 years ago
7 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. `prometheus_listen_addr`).
  9. ## List of available metrics
  10. The following metrics are available:
  11. | Name | Type | Since | Description |
  12. | --------------------------------------- | ------- | --------- | ----------------------------------------------------------------------------- |
  13. | consensus_height | Gauge | 0.20.1 | Height of the chain |
  14. | consensus_validators | Gauge | 0.20.1 | Number of validators |
  15. | consensus_validators_power | Gauge | 0.20.1 | Total voting power of all validators |
  16. | consensus_missing_validators | Gauge | 0.20.1 | Number of validators who did not sign |
  17. | consensus_missing_validators_power | Gauge | 0.20.1 | Total voting power of the missing validators |
  18. | consensus_byzantine_validators | Gauge | 0.20.1 | Number of validators who tried to double sign |
  19. | consensus_byzantine_validators_power | Gauge | 0.20.1 | Total voting power of the byzantine validators |
  20. | consensus_block_interval_seconds | Histogram | 0.20.1 | Time between this and last block (Block.Header.Time) in seconds |
  21. | consensus_rounds | Gauge | 0.20.1 | Number of rounds |
  22. | consensus_num_txs | Gauge | 0.20.1 | Number of transactions |
  23. | mempool_size | Gauge | 0.20.1 | Number of uncommitted transactions |
  24. | consensus_total_txs | Gauge | 0.20.1 | Total number of transactions committed |
  25. | consensus_block_size_bytes | Gauge | 0.20.1 | Block size in bytes |
  26. | p2p_peers | Gauge | 0.20.1 | Number of peers node's connected to |
  27. ## Useful queries
  28. Percentage of missing + byzantine validators:
  29. ```
  30. ((consensus_byzantine_validators_power + consensus_missing_validators_power) / consensus_validators_power) * 100
  31. ```