Sign inSign up

iov1/tendermint-exporter

By iov1

•Updated almost 8 years ago

Prometheus exporter for Tendermint

Image
0

3.5K

iov1/tendermint-exporter repository overview

⁠Tendermint-exporter

This is a Prometheus⁠ Exporter that subscribes a tendermint node for new block events. Additionally it scrapes current peer and netinfo states on every metric request.

Inspired by tm-monitor⁠

Currently we only support latest tag

Dockerfile⁠

Tendermint-exporter supports both networks that generate blocks only with transactions (slow) and the ones that generate blocks every n seconds (fast).
It utilizes a websocket connection for "fast" block-generating nets and an rpc connection for so-called "slow" nets.

Maintained by: IOV One⁠

⁠Run manually

tendermint init
tendermint node --proxy_app="dummy"

# connect to your local tendermint
docker run  --rm -it  -p8080:8080 iov1/tendermint-exporter:manual -tendermint-address <your-ip>:46657 -http-address=":8080"

# view metrics
curl http://localhost:8080/metrics

⁠Usage

Usage of /tendermint-exporter:
  -http-address string
    	serve metrics on this address (default ":8080")
  -is-slow
    	whether network generates blocks only on tx or not
  -query-period duration
    	how often we query tendermint for data (default 10s)
  -sample-expiry duration
    	How long a received event is valid for (default 5m0s)
  -tendermint-address string
    	tendermint instance to watch

Tag summary

Content type

Image

Digest

Size

6.3 MB

Last updated

about 8 years ago

docker pull iov1/tendermint-exporter