https://github.com/iderr/blockcypher_exporter
A blockcypher exporter to monitor your blockchain nodes
https://github.com/iderr/blockcypher_exporter
Last synced: 8 months ago
JSON representation
A blockcypher exporter to monitor your blockchain nodes
- Host: GitHub
- URL: https://github.com/iderr/blockcypher_exporter
- Owner: IDerr
- License: mit
- Created: 2021-10-22T15:16:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-02T15:27:53.000Z (over 4 years ago)
- Last Synced: 2025-07-19T20:55:15.821Z (11 months ago)
- Language: Go
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# blockcypher_exporter
A blockcypher exporter to monitor your blockchain nodes to [Prometheus](https://prometheus.io).
Metrics are retrieved using the BlockCypher REST API.
To run it:
go build app.go -o bin/blockcypher_exporter
bin/blockcypher_exporter [flags]
## Exported Metrics
| Metric | Description |
| ------ | ------- |
| blockcypher_up | Was the last Blockcypher query successful |
| blockcypher_last_block | Last block of chain |
## Flags
./bin/blockcypher_exporter --help
| Flag | Description | Default |
| ---- | ----------- | ------- |
| log.level | Logging level | `info` |
| web.listen-address | Address to listen on for telemetry | `:9141` |
| web.telemetry-path | Path under which to expose metrics | `/metrics` |
## Env Variables
Use a .env file in the local folder, or /etc/sysconfig/blockcypher_exporter
Possible values can be found on [BlockCypher docs](https://www.blockcypher.com/dev/bitcoin/#restful-resources)
```
CHAIN="main"
COIN="eth"
```