Skip to content

5.2.4

Compare
Choose a tag to compare
@abizjak abizjak released this 16 Mar 12:58
· 1516 commits to main since this release

The major feature of this release is the revised Prometheus interface that is now fully documented and supported. See prometheus-exporter for documentation of the metrics available via this API.

Changelog.

Bugfixes

  • Fix a bug in GetAccountInfo endpoint in GRPCv2 where incoming_amounts
    field of encrypted amounts was not set correctly.
  • Fix an issue where the node configuration file (main.config.json) was
    sometimes corrupted.

Prometheus interface changes and additions.

  • Remove current_queue_size, resend_queue_size, packets_dropped, invalid_packets_received
    unknown_packets_received, invalid_network_packets_received,
    packets_resend metrics from the Prometheus server since they were never updated.
  • Rename a number of metrics exposed by the Prometheus exporter:
    • peer_number is now network_connected_peers.
    • conn_received is now network_connections_received_total.
    • packets_received is now network_packets_received_total.
    • packets_sent is now network_packets_sent_total.
    • inbound_high_priority_consensus_drops is now network_inbound_high_priority_message_drops_total.
    • inbound_low_priority_consensus_drops is now network_inbound_low_priority_message_drops_total.
    • inbound_high_priority_consensus_counter is now network_inbound_high_priority_messages_total.
    • inbound_low_priority_consensus_counter is now network_inbound_low_priority_messages_total.
    • inbound_high_priority_consensus_size is now network_inbound_high_priority_message_queue_size.
    • inbound_low_priority_consensus_size is now network_inbound_low_priority_message_queue_size.
    • outbound_high_priority_consensus_size is now network_outbound_high_priority_message_queue_size.
    • outbound_low_priority_consensus_size is now network_outbound_low_priority_message_queue_size.
    • bytes_received is now network_received_bytes.
    • bytes_sent is now network_sent_bytes.
  • Remove last_throughput_measurement_timestamp, avg_bps_in and avg_bps_out metrics exposed by the Prometheus exporter.
  • Change behavior of Prometheus metrics network_sent_bytes and network_received_bytes. Before this change these metrics were calculated as a sum of all the bytes sent/received to peers, which causes the metrics to drop when a peer is dropped. They were only updated during the scheduled "housekeeping" (every 30 secons by default). The new behavior is to update the metric every time a message is sent/received to a peer.
  • Extend Prometheus exporter with metrics: consensus_last_finalized_block_height, consensus_last_finalized_block_timestamp, consensus_last_arrived_block_height, consensus_last_arrived_block_timestamp, consensus_received_messages_total, consensus_sent_messages_total, network_soft_banned_peers, network_peers_total, node_info and node_startup_timestamp see docs/prometheus-exporter.md for more details.
  • Remove metrics network_inbound_high_priority_message_drops_total, network_inbound_low_priority_message_drops_total, network_inbound_high_priority_messages_total and network_inbound_high_priority_messages_total as they can be derived using the labels of consensus_received_messages_total.

Other API changes

  • Add an option to disable only the node specific grpc V1 endpoints that can be
    used to control the node. All the endpoints that are consensus related are
    kept allowing the node to be used as a gateway to the chain. The mentioned can
    be disabled by setting CONCORDIUM_NODE_DISABLE_RPC_SERVER_NODE_ENDPOINTS
    or using the flag --no-rpc-server-node-endpoints.