You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Prometheus supports three value types, counter, gauge and histogram. It accepts a specific format of data.
List of parameters for Prometheus
Below is the text format that is accepted by Prometheus and including parameters that are good candidates to be included in the response.
avg_number_of_times_block_received: get averageReceivedBlock from #5295 avg_number_of_times_transaction_received: get averageReceivedTransactions from #5884 node_height: await channel.invoke('app:getNodeInfo') finalized_height: await channel.invoke('app:getNodeInfo') unconfirmed_transactions: await channel.invoke('app:getNodeInfo') connected_peers: await channel.invoke('app:getConnectedPeers') disconnected_peers: await channel.invoke('app:getDisconnectedPeers') number_of_fork_events: get the count from the counter from #5886
# HELPBlockpropagation
# TYPEavg_number_of_times_block_receivedgaugeavg_number_of_times_block_received18
# HELPTransactionpropagation
# TYPEavg_number_of_times_transaction_receivedgaugeavg_number_of_times_transaction_received42
# HELPNodeheight
# TYPEnode_heightgaugenode_height126688
# HELPFinalisedheight
# TYPEfinalized_heightgaugefinalized_height42
# HELPUnconfirmedtransactions
# TYPEunconfirmed_transactionsgaugeunconfirmed_transactions2
# HELPConnectedpeers// This can be broken down into outgoing and incoming peers
# TYPEconnected_peersgaugeconnected_peers85
# HELPDisconnectedpeers
# TYPEdisconnected_peersgaugedisconnected_peers1234
# HELPNumberofforkevents
# TYPEnumber_of_fork_eventsgaugenumber_of_fork_events23
Motivation
To provide data that is compatible with Prometheus that can be used to visualize or to have network wide view of nodes during alpha testing based on some key parameters.
Acceptance Criteria
Add unit test to check if the above values are exposed
Check if the above values are responded by registering to the framework
Description
Prometheus supports three value types, counter, gauge and histogram. It accepts a specific format of data.
List of parameters for Prometheus
Below is the text format that is accepted by Prometheus and including parameters that are good candidates to be included in the response.
avg_number_of_times_block_received: get
averageReceivedBlock
from #5295avg_number_of_times_transaction_received: get
averageReceivedTransactions
from #5884node_height:
await channel.invoke('app:getNodeInfo')
finalized_height:
await channel.invoke('app:getNodeInfo')
unconfirmed_transactions:
await channel.invoke('app:getNodeInfo')
connected_peers:
await channel.invoke('app:getConnectedPeers')
disconnected_peers:
await channel.invoke('app:getDisconnectedPeers')
number_of_fork_events: get the count from the counter from #5886
Motivation
To provide data that is compatible with Prometheus that can be used to visualize or to have network wide view of nodes during alpha testing based on some key parameters.
Acceptance Criteria
Additional Information
Related issues: #5216
The text was updated successfully, but these errors were encountered: