Skip to content

v0.2.0

Compare
Choose a tag to compare
@DenisCarriere DenisCarriere released this 01 Mar 23:57
· 77 commits to main since this release

Substreams Prometheus CLI Node.js

github npm GitHub Workflow Status

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

Use pre-built binaries

  • 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