PAO Docs
PAO DocsCommunity DocsInfrastructure DocsDeveloper DocsPeerplays.com
  • Peerplays 2.0
    • Deployment Guides
      • Deployment in a box
      • Blockscout Explorer Deployment
        • Deploying Microservices to run Blockscout Explorer locally
      • Glossary
    • Howto & FAQ
    • Guide to backup and restore Blockchain data
    • Key Metrics
    • Solidity Smart contracts
      • Solidity smart contract deployment using REMIX IDE
      • Solidity smart contract deployment using hardhat
      • Metamask Deployment
Powered by GitBook
On this page
  • Monitoring setup
  • Hardware requirements
  • Important metrics to monitor
  1. Peerplays 2.0

Key Metrics

PreviousGuide to backup and restore Blockchain dataNextSolidity Smart contracts

Last updated 1 year ago

Monitoring setup

Please refer to the substrate node guide to set up monitoring.

Hardware requirements

Before starting the node, check that the system has at least 2GiB of free space

During node startup pay attention to the host performance check there will be entries in the log with the current hardware score

🏁 CPU score: 🏁 Memory score: 🏁 Disk score (seq. writes): 🏁 Disk score (rand. writes):

In case of insufficient resources, there will be a message:

⚠️ The hardware does not meet the minimal requirements for the role of 'Authority'.

Important metrics to monitor

  1. Block construction time should not be more than 5 seconds

Metrics:

substrate_proposer_block_constructed_bucket

Usage example with Prometheus:

histogram_quantile(0.90, sum(rate(substrate_proposer_block_constructed_bucket[5m])) by (le))
  1. 'Finalized' chain shouldn't lag behind 'best' for more than 10 blocks ('best' - 'finalized' < 10)

Metrics:

substrate_block_height{status="best"} 
substrate_block_height{status="finalized"}

Usage example with Prometheus:

sum by (name, instance) (substrate_block_height{status="best", chain="testnet"}) - sum by (name, instance)(substrate_block_height{status="finalized", chain="testnet"})
  1. Number of connected peers should be more than 0 and depends on network size. On large networks, it will be limited by libp2p default value of 300.

Metrics:

substrate_sub_libp2p_peers_count

Monitor node metrics | Substrate_ Docs
Logo