Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.58 KB

README.md

File metadata and controls

32 lines (26 loc) · 1.58 KB

Gather block/transaction statistics and pipe them to InfluxDB for query and (optionally) graphing (via Grafana).

Run

docker-compose up

Fancy Grafana Charts

image

SELECT "gas_price_nanoeth" FROM "transaction" WHERE time >= now() - 15m

image

SELECT sum("gas_cost_total_eth") AS "total_fees_paid" FROM "transaction" WHERE time >= now() - 15m GROUP BY time(1s) fill(previous)

image

SELECT last("number") AS "number", last("since_previous_block_seconds") AS "time_since_last_block" FROM "block" WHERE time >= now() - 15m GROUP BY time(1s) fill(previous)

image

SELECT percentile("since_previous_block_seconds", 50) AS "50%", percentile("since_previous_block_seconds", 75) AS "75%", percentile("since_previous_block_seconds", 90) AS "90%", percentile("since_previous_block_seconds", 98) AS "98%", percentile("since_previous_block_seconds", 99) AS "99%", percentile("since_previous_block_seconds", 99.9) AS "99.9%" FROM "block" WHERE time >= now() - 24h

image

SELECT "since_previous_block_seconds" FROM "block" WHERE time >= now() - 24h