-
Notifications
You must be signed in to change notification settings - Fork 995
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
Metrics request: highest possible slot #4586
Comments
It looks like the sync block counter is implemented by taking the time since genesis and dividing by seconds per slot. Is that a reliable way to calculate this metric or is there likely to be some accumulated drift? |
Hi @garyschulte we do have this prometheus metric live in our nodes, it is called prysm/beacon-chain/blockchain/metrics.go Line 13 in 80248cd
|
@rauljordan Then it is lagging (at least for me). I refreshed my metric page and immediately took a screenshot. |
I noticed the same behavior. I am charting beacon_slot and beacon_head_slot, and head slot does definitely lag for whatever reason. Perhaps whatever code path that is emitting that metric is not being triggered during those periods |
This (already closed) issue has resolved itself via #4754 It is ok now as can be seen in the screen print. Thanks @terencechain |
@handelaar2 Based on your comments after closing, is this still an issue we should look into? |
@handelaar2 please let us know if this is still a problem |
Can only confirm in a few days after the restart of the testnet (don't have a proper beacon running right now) |
I still see this as an issue. beacon_head_slot and beacon_slot are not (not sure where they get their values from). prysm/beacon-chain/blockchain/metrics.go Line 85 in 2fef9d3
_ CurrentSlot (looks pure timebased to me):
_ To clarify again what I mean, below screenprint shows this timebased slot number: |
There are two different metrics: the current slot of the chain, which is calculated purely from genesis timestamp and current time, and the current slot of the node, which is equivalent to the node's head slot as above. There are discussions going on at ethereum/beacon-APIs#25 regarding making this and other information available via a standard API. |
That is my point Jim, we currently don't have in the metrics that "current slot of the chain" ((now-genesis)/12) as you call it. It is not there. So that is the value I would like to make available to prometheus/grafana (not via the api). |
The node monitoring site eth2stats.io shows a nice timebased counter of the highest possible slot (slot counter increasing every 12 secs). It would be nice to add this slot-value to the metrics page. This way we can create measurements how far the node's head slot is away from this highest possible value (and how fast the delta is decreasing or increasing).
It seems the value itself is already there, at least in initial-sync. See below screenprint
And maybe the same for Epoch #
The text was updated successfully, but these errors were encountered: