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

Finalized and Safe Height Metrics are Zero (0) on Prometheus Endpoint #1388

Open
ncavedale-xlabs opened this issue Dec 13, 2024 · 3 comments

Comments

@ncavedale-xlabs
Copy link

Hi team!
Metrics chain_head_finalized and chain_head_safe return "0" for Bor:

# TYPE chain_head_finalized gauge
chain_head_finalized 0

# TYPE chain_head_safe gauge
chain_head_safe 0

Is this by design? Are there plans to implement/fix these?

Thanks!

@marcello33
Copy link
Contributor

Hey @ncavedale-xlabs, what version of bor are you using?

Copy link

github-actions bot commented Jan 3, 2025

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jan 3, 2025
@MqllR
Copy link
Contributor

MqllR commented Jan 6, 2025

After looking at the bor codebase, it seems like the finality isn't handled exactly the same way as geth. When you run a eth_getBlockByNumber with the finalize tag, you reach some bor specific code that uses the milestones https://github.com/maticnetwork/bor/blob/master/eth/api.go#L56.
The metric chain_milestone_latest seems to be pretty close to the block number retrieved with a eth_getBlockByNumber call. But I let the Polygon experts confirm or not :)

@github-actions github-actions bot removed the Stale label Jan 8, 2025
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