Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Latest commit

 

History

History
 
 

transaction-metrics-exporter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Transaction Metrics Exporter

For this package to work properly, contracts must be deployed.

The env variable WEB3_PROVIDER must be set. When testing locally, you can use celotooljs port-forward -e SOME_ENV and set WEB3_PROVIDER="ws://localhost:8546"

You can then start the server on port 3000 by running yarn dev. Metrics are exposed as the prometheus format under /metrics and it logs structured JSON of blocks and headers to STDOUT.