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.

56 lines
4.8 KiB

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