Skip to content

set validator_monitor_block_miss_total metric to zero at start #7802

@yakimant

Description

@yakimant

Describe the bug

validator_monitor_block_miss_total is missing until missed block event happens:

$ curl -s 0:8008/metrics | grep validator_monitor_block_miss
# HELP validator_monitor_block_miss Number of times the validator was expected to propose a block but no block was included
# TYPE validator_monitor_block_miss counter

It makes graphs and alerts relying on increase, rate tricky.

As a best practice it's recommended to set metrics at startup with zero.
(see links at the bottom).

To Reproduce
Steps to reproduce the behavior:

  1. Run Nimbus Beacon Node with Validator Monitor
  2. Check the metrics endpoint output for validator_monitor_block_miss_total

Links

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions