erigon icon indicating copy to clipboard operation
erigon copied to clipboard

metrics: Measure incoming block delays

Open shohamc1 opened this issue 1 year ago • 1 comments

Adds the following metrics via diagnostics API:

  • Delay between header timestamp and header download
  • Delay between header timestamp and body download
  • Delay between header timestamp and block execution start
  • Delay between header timestamp and block execution end
  • Delay between header timestamp and starting to produce next start

The API returns up to 200 entries along with the minimum, maximum and average of the data set in the following format

{
    "max": 811023000,
    "min": 95364000,
    "average": 220728375,
    "data": [
        178573000,
        162932000,
        ...
    ]
}

shohamc1 avatar Mar 11 '24 06:03 shohamc1

@shohamc1 please also add metric into turbo/execution/eth1/inserters.go:InsertBlocks - it's used instead of stage_bodies if --internalcl is set.

AskAlexSharov avatar Mar 11 '24 07:03 AskAlexSharov