v0.2.0
Substreams
Prometheus CLI Node.js
substreams-sink-prometheus
is a tool that allows developers to pipe data extracted metrics from a blockchain into a Prometheus time series database.
π Documentation
https://www.npmjs.com/package/substreams-sink-prometheus
Further resources
Protobuf
CLI
- MacOS
- Linux
- Windows
Install globally via npm
$ npm install -g substreams-sink-prometheus
Run
$ substreams-sink-prometheus run [options] <spkg>
Open the browser at http://localhost:9102/metrics
Features
- Consume
*.spkg
from:- Load URL or IPFS
- Read from
*.spkg
local filesystem - Read from
substreams.yaml
local filesystem
- Prometheus metrics
- Handle
cursor
restart