https://github.com/certusone/tm_exporter
Tendermint block miss exporter
https://github.com/certusone/tm_exporter
Last synced: 16 days ago
JSON representation
Tendermint block miss exporter
- Host: GitHub
- URL: https://github.com/certusone/tm_exporter
- Owner: certusone
- License: apache-2.0
- Created: 2020-01-25T22:08:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-28T21:04:16.000Z (about 5 years ago)
- Last Synced: 2024-06-20T14:00:50.008Z (almost 2 years ago)
- Language: Go
- Size: 56.6 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Tendermint block miss exporter
This prometheus exporter watches a tendermint node and counts the blocks missed by a specific validator.
The `tm_mon_misses` starts from zero and is incremented every time the specified validator misses a block.
In order to track whether the exporter is not stuck it also exposes the last processed height as `tm_mon_height`
### How to build
Running `make build` will build artifacts to `bin`.
The `Dockerfile` can also be used to build a container.
We provide a prebuilt container image on [DockerHub](https://hub.docker.com/r/certusone/tm_exporter): `certusone/tm_exporter`
### Configuration
The configuration needs to be passed in via the environment.
| Name | Description |
|------|-------------|
| LADDR | Listening address (e.g. `:8080`)
| RPC | RPC address of the tendermint node to use for monitoring |
| ADDRESS | The hex consensus address of the validator that should be monitored |
### Error handling
In case of errors during startup the program will panic. Errors during runtime are printed to the console and might
lead to the exporter not processing blocks. This will be visible in prometheus as `tm_mon_height` will stop increasing.