Skip to content

Releases: pinax-network/substreams-sink-prometheus

v0.4.2

11 Apr 14:15
Compare
Choose a tag to compare

Add manifest gauge with following labels:

  • hash
  • manifest
  • outputModule
  • host
  • auth
  • startBlockNum
  • productionMode

v0.4.1

05 Apr 17:27
Compare
Choose a tag to compare
  • fix operation iteration issue
  • Add clock handling

v0.4.0

04 Apr 18:17
Compare
Choose a tag to compare
  • refactor using base substreams-sink library

v0.3.3

24 Mar 22:09
Compare
Choose a tag to compare
  • fix head_block_time_drift reporting 0 value

v0.3.2

24 Mar 00:29
Compare
Choose a tag to compare
  • added restart support (saves cursor.lock file on disk)
  • new param --cursor-file to change location of lock file

Notes

  • allowed to provide --start-block however if cursor.lock exists, it will take precedent.
  • ideally do not provide --stop-block for long running process

Example

cursor.lock

Oy5XmodIs59d-XeWkpKib6WwLpc_DFlvVAPhIhVL0YikpifBiZWgAWInPEnYla3w2kPjHVik3d3KRih595YBtNfiwupm7SQ7T3wqlYrn873qfqCjPV9OJbpjV7yOa9LYWz3fZgL_cOUDsoOyPqfRYUMxMJNyJGO3jzgGqtNWeKATviFjwTmrIsfU2PrE84JE_OsiQuKinCOqAjMufUsPaJiDZvrJvzU=

v0.2.0

01 Mar 23:57
Compare
Choose a tag to compare

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