Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On start Prometheus metrics are set to 0 #80

Closed
ank-everstake opened this issue Oct 19, 2023 · 4 comments
Closed

On start Prometheus metrics are set to 0 #80

ank-everstake opened this issue Oct 19, 2023 · 4 comments

Comments

@ank-everstake
Copy link

When you start the program, watcher will expose Prometheus metrics with values set as 0.0

It will definetely skew the data on dashboards in case the script will fail and restart.

On init:

our_actual_heads_count_total 0.0
our_actual_heads_count_created 1.6977366328263304e+09
our_slashed_validators_count 0.0
total_slashed_validators_count 0.0
suboptimal_attestations_rate 0.0
slot 7.576051e+06
epoch 236751.0
our_pending_queued_validators_count 0.0
total_pending_queued_validators_count 0.0
our_active_validators_count 0.0
total_active_validators_count 0.0

After initialization:

our_actual_heads_count_total 56063.0
our_actual_heads_count_created 1.6977366328263304e+09
our_slashed_validators_count 0.0
total_slashed_validators_count 299.0
suboptimal_attestations_rate 0.0
slot 7.576128e+06
epoch 236754.0
our_pending_queued_validators_count 0.0
total_pending_queued_validators_count 0.0
our_active_validators_count 7.0
total_active_validators_count 862878.0

Code used: v0.6.0 tag.
Versions:

Python 3.9.5

See drops to zero on dashboard below:
2023-10-19_20-18

@aimxhaisse
Copy link
Member

Nice catch! Will send a patch for this :)

@nalepae
Copy link
Contributor

nalepae commented Oct 26, 2023

Fixed, will be deployed in v0.7.0.

On reboot, we now see a empty space corresponding to missing data during the reboot, but no data == 0 point.

image

@nalepae
Copy link
Contributor

nalepae commented Oct 26, 2023

image

@nalepae
Copy link
Contributor

nalepae commented Oct 26, 2023

image

@nalepae nalepae closed this as completed Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants