Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ def get_validator_status_metrics(self, result: list):
result.append(METRICS['master_out_of_sync'].to_format(status.masterchain_out_of_sync))
if status.shardchain_out_of_sync is not None:
result.append(METRICS['shard_out_of_sync'].to_format(status.shardchain_out_of_sync))
if status.masterchain_out_of_ser is not None:
if status.masterchain_out_of_ser is not None and status.stateserializermasterchainseqno != 0:
result.append(METRICS['out_of_ser'].to_format(status.masterchain_out_of_ser))
if status.masterchainblock is not None and status.gcmasterchainblock is not None:
result.append(METRICS['celldb_gc_block'].to_format(status.masterchainblock - status.gcmasterchainblock))
if status.gcmasterchainblock is not None and status.last_deleted_mc_state is not None:
if status.gcmasterchainblock is not None and status.last_deleted_mc_state is not None and status.last_deleted_mc_state != 0:
result.append(METRICS['celldb_gc_state'].to_format(status.gcmasterchainblock - status.last_deleted_mc_state))
result.append(METRICS['vc_up'].to_format(int(is_working)))

Expand Down