This application utilizes Node.js, MongoDB, Express.js, and Grafana.
The following is a pseudo flow of the app
-
POST
request is sent from Grafana to/query
. In the body of the request theonly
key value pair is passed to choose which data to target per the panel -
scraper.js
collects data from new onchain events stores them in db, including blocknumber and timestamp -
db is queried and data is formatted to match Grafana JSON Timeseries plugin pattern
-
formatted data is sent to Grafana and displayed on the panel per settings set.