Releases: pinax-network/substreams-sink-prometheus
Releases · pinax-network/substreams-sink-prometheus
v0.4.2
Add manifest
gauge with following labels:
- hash
- manifest
- outputModule
- host
- auth
- startBlockNum
- productionMode
v0.4.1
- fix operation iteration issue
- Add
clock
handling
v0.4.0
- refactor using base
substreams-sink
library
v0.3.3
- fix
head_block_time_drift
reporting 0 value
v0.3.2
- 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 ifcursor.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
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