streamingfast / merger

Apache License 2.0
4 stars 5 forks source link

Allow merger to publish head_block_drift promethus metrics when it is far behind live blocks #13

Closed matthewdarwin closed 2 years ago

matthewdarwin commented 2 years ago

If merger is merging blocks from 1 year ago, it doesn't publish head_block_drift promethus metrics. It only publishes this data when closer to "live". This would be nice to have.

matthewdarwin commented 2 years ago

This seems not to be working. I still see no data. Blocks are being merged by mindreader... merger is just reading them in as they are created.

This returns nothing: curl -s http://localhost:9102 | grep drift

sduchesneau commented 2 years ago

you're describing a different scenario than the original issue (mindreader is merging vs merger is merging old blocks -- there was a case where it wouldn't update the head block drift, now fixed here --).

matthewdarwin commented 2 years ago

ok, well multiple issues. ;-)

Here is dfuse drift chart from the time the chain switches from catching up to "live" for the first time. (the first mindreader caught up)

image