Refactor a bit to remove server-config dependency on peer-metrics. It turned out to be useless in this PR, but maybe will be helpful in the next one with more configs
Add current_commitment_status. The status is a number which corresponds to the CCStatus enum in chain_listener.
Add nox_chain_info metric. Example:
# HELP nox_chain Chain Nox Info.
# TYPE nox_chain info
nox_chain_info{peer_id="0x123",http_endpoint="http://localhost:8545",diamond_contract_address="0x123",network_id="1",default_base_fee="1",default_priority_fee="1",ws_endpoint="ws://localhost:8546",proof_poll_period="1s",min_batch_count="1",max_batch_count="1",max_proof_batch_size="1",epoch_end_window="1s"} 1
# EOF
Description
Add a chain info metric with chain configuration
Proposed Changes
server-config
dependency onpeer-metrics
. It turned out to be useless in this PR, but maybe will be helpful in the next one with more configscurrent_commitment_status
. The status is a number which corresponds to the CCStatus enum in chain_listener.nox_chain_info
metric. Example: