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.

52 lines
4.8 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. `instrumentation.prometheus\_listen\_addr`).
  9. ## List of available metrics
  10. The following metrics are available:
  11. | **Name** | **Type** | **Since** | **Tags** | **Description** |
  12. |-----------------------------------------|-----------|-----------|----------------|-----------------------------------------------------------------|
  13. | consensus\_height | Gauge | 0.21.0 | | Height of the chain |
  14. | consensus\_validators | Gauge | 0.21.0 | | Number of validators |
  15. | consensus\_validators\_power | Gauge | 0.21.0 | | Total voting power of all validators |
  16. | consensus\_missing\_validators | Gauge | 0.21.0 | | Number of validators who did not sign |
  17. | consensus\_missing\_validators\_power | Gauge | 0.21.0 | | Total voting power of the missing validators |
  18. | consensus\_byzantine\_validators | Gauge | 0.21.0 | | Number of validators who tried to double sign |
  19. | consensus\_byzantine\_validators\_power | Gauge | 0.21.0 | | Total voting power of the byzantine validators |
  20. | consensus\_block\_interval\_seconds | Histogram | 0.21.0 | | Time between this and last block (Block.Header.Time) in seconds |
  21. | consensus\_rounds | Gauge | 0.21.0 | | Number of rounds |
  22. | consensus\_num\_txs | Gauge | 0.21.0 | | Number of transactions |
  23. | consensus\_block\_parts | counter | on dev | peer\_id | number of blockparts transmitted by peer |
  24. | consensus\_latest\_block\_height | gauge | on dev | | /status sync\_info number |
  25. | consensus\_fast\_syncing | gauge | on dev | | either 0 (not fast syncing) or 1 (syncing) |
  26. | consensus\_total\_txs | Gauge | 0.21.0 | | Total number of transactions committed |
  27. | consensus\_block\_size\_bytes | Gauge | 0.21.0 | | Block size in bytes |
  28. | p2p\_peers | Gauge | 0.21.0 | | Number of peers node's connected to |
  29. | p2p\_peer\_receive\_bytes\_total | counter | on dev | peer\_id, chID | number of bytes per channel received from a given peer |
  30. | p2p\_peer\_send\_bytes\_total | counter | on dev | peer\_id, chID | number of bytes per channel sent to a given peer |
  31. | p2p\_peer\_pending\_send\_bytes | gauge | on dev | peer\_id | number of pending bytes to be sent to a given peer |
  32. | p2p\_num\_txs | gauge | on dev | peer\_id | number of transactions submitted by each peer\_id |
  33. | p2p\_pending\_send\_bytes | gauge | on dev | peer\_id | amount of data pending to be sent to peer |
  34. | mempool\_size | Gauge | 0.21.0 | | Number of uncommitted transactions |
  35. | mempool\_tx\_size\_bytes | histogram | on dev | | transaction sizes in bytes |
  36. | mempool\_failed\_txs | counter | on dev | | number of failed transactions |
  37. | mempool\_recheck\_times | counter | on dev | | number of transactions rechecked in the mempool |
  38. | state\_block\_processing\_time | histogram | on dev | | time between BeginBlock and EndBlock in ms |
  39. ## Useful queries
  40. Percentage of missing + byzantine validators:
  41. ```
  42. ((consensus\_byzantine\_validators\_power + consensus\_missing\_validators\_power) / consensus\_validators\_power) * 100
  43. ```