If you use the Clique or IBFT 2.0 proof of authority (PoA) consensus protocols, determine whether all validators are proposing blocks to identify possible network problems.
Enable monitoring of validators on the command line by specifying the
POA metrics category and optionally specifying the number of recently added blocks to check.
`besu --metrics-enabled --metrics-categories=POA --plugin-metrics-recent-block-count=50`
The command line statement:
- Enables metrics using the
- Specifies the
POAmetrics category using the
- Specifies the number of recently added blocks to check using the
Configure and run Prometheus as described for Hyperledger Besu.
Open a web browser to
http://localhost:9090to view the Prometheus graphical interface.
Select Graph from the menu bar and select the Console tab.
From the Insert metric at cursor drop-down, select one of the following metrics, and select Execute. The values are displayed.
|Name||Metric type||Definition||JSON-RPC equivalent|
|Gauge||Number of times this node was a block signer in the last n blocks, where n is the value specified for ||None|
|Gauge||Number of rounds required to import the latest block||None|
|Gauge||Number of unique signers in the last n blocks, where n is the value specified for ||None|
|Gauge||Number of unique validators proposing blocks in the last n blocks, where n is the value specified for |
|Gauge||Number of times this validator proposed an accepted block in the last n blocks, where n is the value specified for |
|Gauge||Number of validators currently defined|
(Optional) Visualize the collected data using Grafana.
- Start Grafana.
- Open a web browser to http://localhost:3000 to view the Grafana graphical interface, and log in. For first-time users, the default name is admin, and the default password is admin.
<your-installation-directory/dashboard>to create the dashboard.