Skip to main content

Use metrics to monitor performance

Quorum Blockchain Service (QBS) integrates with Azure Monitor to enable you to monitor resources for availability, performance, and operations.

In addition to the standard Azure metrics, QBS provides the following custom metrics for transaction nodes and validator nodes:

Access the metrics

To access the custom metrics for your validator node or transaction node:

  1. Open your QBS member in the Azure Portal.

  2. Select your managed resource group in the Overview tab.

    Managed resource group

  3. In the working pane, select your transaction node or validator node.

    Monitor Transaction Node

  4. In the resource menu's Monitoring section, select Metrics.

  5. In the working pane, select the custom metrics in the Metric Namespace dropdown

    Metric Namespace

Custom metrics types

Performance metrics

The following table lists the performance metrics that are collected for each of the nodes.

Metric nameUnitAggregation typeDescription
CPU_Usage_percentagePercentageMaxPercentage of the CPU usage.
io_read_bytesKilobytesSumSum of IO read bytes across all nodes of the blockchain member resource.
io_write_bytesKilobytesSumSum of IO writes bytes across all nodes of the blockchain member resource.
Memory_LimitGigabytesAverageMaximum memory available for the blockchain process per node.
Memory_UsageGigabytesAverageAmount of memory used averaged across all nodes.
Memory_Usage_PercentagePercentageAveragePercentage of memory used averaged across all nodes.
Storage_UsageGigabytesAverageStorage (in GB) used averaged across all nodes.

Connection metrics

The following table lists the different connection metrics that are collected for your nodes. These are Nginx proxy metrics.

Metric nameUnitAggregation typeDescription
Accepted_ConnectionsCountSumTotal number of accepted client connections.
Active_ConnectionsCountAverageCurrent number of active client connections including waiting connections.
Handled_ConnectionsCountSumTotal number of handled connections. Generally, the parameter value is the same as accepted connections unless some resource limits have been reached.
Handled_RequestsCountSumTotal number of client requests.

Blockchain metrics

The following table specifies the list of blockchain metrics that are collected for your nodes.

Metric nameUnitAggregation typeDescription
Pending_TransactionsCountAverageNumber of transactions waiting to be mined.
Processed_BlocksCountSumNumber of blocks processed in each time interval. The block size is 5 seconds, meaning in a minute each node processes 12 blocks.
Processed_TransactionsCountSumNumber of transactions processed in a block.
Queued_TransactionsCountAverageNumber of transactions that cannot be immediately mined. It can be because they arrived out of order and the future transaction is waiting for the previous one to arrive. Or, it can be because two transactions have the same number only used once (nonce) and the same gas value, hence the second one cannot be mined.

Create a metric chart

You can create custom metrics dashboards in the Azure portal to view the ongoing activity of your QBS member. The Azure Metrics Explorer documentation provides information about how to use the metrics to create a metric chart, and other advanced features.

Create alerts based on metrics

You can set custom alerts based on metrics of your QBS member. For example, if you want to be alerted when transactions are stuck in the queue, you can use Azure Metrics Alerts to determine what action you want taken.