| 1 | #chainhead_header is expected momenterarily to be ahead. If its considerably ahead (e.g more than 5 blocks), then the node is definitely out of sync. |
| 2 | template: geth_chainhead_diff_between_header_block |
| 3 | on: geth.chainhead |
| 4 | class: Workload |
| 5 | type: ethereum_node |
| 6 | component: geth |
| 7 | every: 10s |
| 8 | calc: $chain_head_block - $chain_head_header |
| 9 | units: blocks |
| 10 | warn: $this != 0 |
| 11 | delay: down 1m multiplier 1.5 max 1h |