Skip to content

[CHRON-10630] Set up metrics for Blockchain Interface#58

Merged
mexskican merged 2 commits intoblockchain-interfacefrom
bv-CHRON-10630
Dec 12, 2019
Merged

[CHRON-10630] Set up metrics for Blockchain Interface#58
mexskican merged 2 commits intoblockchain-interfacefrom
bv-CHRON-10630

Conversation

@mexskican
Copy link
Contributor

@mexskican mexskican commented Dec 10, 2019

Add the following metrics:

  • sent_blocks: The total number of blocks sent to RabbitMQ since the Blockchain Interface started.
  • connected_peers: The number of connected peers, this value is updated when a new block is imported.
  • latest_block: The latest imported block, this value is a gauge that can decrease (Parity might import blocks in disorder while doing a warp sync). Once the Blockchain Interface is synced with the network this value will only increase as long as there is no reorg.

@mexskican mexskican requested a review from robot-head December 11, 2019 23:35
@mexskican mexskican changed the title [CHRON-10630] Set up metrics for connected peers [CHRON-10630] Set up metrics for Blockchain Interface Dec 11, 2019
@mexskican mexskican requested a review from ahaensler December 12, 2019 00:08
@mexskican mexskican merged commit ff05f5a into blockchain-interface Dec 12, 2019
@mexskican mexskican deleted the bv-CHRON-10630 branch December 12, 2019 00:32
mexskican added a commit that referenced this pull request Jan 16, 2020
* Add connected peers metric value

* Add latest block received and sent blocks metrics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants