Skip to content

Commit

Permalink
fix: markdown lints
Browse files Browse the repository at this point in the history
  • Loading branch information
saibatizoku committed Sep 27, 2023
1 parent 3b228b3 commit 5ab6422
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions book/src/10_prometheus_metrics/00_description.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,129 +2,144 @@

`jormungadr` uses Prometheus metrics to gather information about the node at runtime.


## Fragment Mempool Process

As the node receives fragments, they are inserted into the fragment mempool, and propagated into the peer network.

### `txRecvCnt`

>> tx_recv_cnt: IntCounter,

Total number of tx inserted and propagated by the mempool at each loop in the process.

### `txRejectedCnt`

>> tx_rejected_cnt: IntCounter,

Total number of tx rejected by the mempool at each loop in the process.

### `mempoolTxCount`

>> mempool_tx_count: UIntGauge,

Total number of tx in the mempool for a given block

### `mempoolUsageRatio`

>> mempool_usage_ratio: Gauge,

Mempool usage ratio for a given block


## Topology Process

As the node connects to peers, the network topology allows for gossip and p2p communication. Nodes can join or leave the network.

### `peerConnectedCnt`

>> peer_connected_cnt: UIntGauge,

The total number of connected peers.

### `peerQuarantinedCnt`

>> peer_quarantined_cnt: UIntGauge,

The total number of quarantined peers.

### `peerAvailableCnt`

>> peer_available_cnt: UIntGauge,

The total number of available peers.

### `peerTotalCnt`

>> peer_total_cnt: UIntGauge,

The total number of peers.


## Blockchain Process

Each node receives blocks streamed from the network which are processed in order to create a new block tip.

### `blockRecvCnt`

>> block_recv_cnt: IntCounter,

This is the total number of blocks streamed from the network that will be processed at each loop in the process.


## Blockchain Tip-Block Process

As the node sets the tip-block, this happens when the node is started and during the block minting process, these metrics are updated.

### `votesCasted`

>> votes_casted_cnt: IntCounter,

The total number accepted `VoteCast` fragments. Metric is incremented by the total number of valid `VoteCast` fragments in the block tip.
The total number accepted `VoteCast` fragments. Metric is incremented by the total number of valid `VoteCast` fragments
in the block tip.

### `lastBlockTx`

>> // Total number of tx for a given block
>> block_tx_count: IntCounter,

The total number of valid transaction fragments in the block tip.

### `lastBlockInputTime` <--- **misnomer**

>> block_input_sum: UIntGauge,

The total sum of transaction input values in the block tip. The `tx.total_input()` is added for every fragment.

### `lastBlockSum`

>> block_fee_sum: UIntGauge,

The total sum of transaction output values (fees) in the block tip. The `tx.total_output()` is added for every fragment.

### `lastBlockContentSize`

>> block_content_size: UIntGauge,

The total size in bytes of the sum of the transaction content in the block tip.

### `lastBlockEpoch`

>> block_epoch: UIntGauge,

The epoch of the block date defined in the block tip header.

### `lastBlockSlot`

>> block_slot: UIntGauge,

The slot of the block date defined in the block tip header.

### `lastBlockHeight`

>> block_chain_length: UIntGauge,

Length of the blockchain.

### `lastBlockDate`

>> block_time: UIntGauge,

Timestamp in seconds of the block date.


## Unused metrics

### `lastReceivedBlockTime`

>> slot_start_time: UIntGauge,

This metric is never updated.


## Unclear metrics

### `lastBlockHashPiece`
### `lastBlockHashPiece`

>> block_hash: Vec<UIntGauge>,

A vector of gauges that does something to with the block hash. Metric is updated when `http_response` is called.

0 comments on commit 5ab6422

Please sign in to comment.