Jakub Sokołowski
62c76c4ced
Starting from 1.9.0 Geth removed the `debug_metrics` RPC call Signed-off-by: Jakub Sokołowski <jakub@status.im> |
||
---|---|---|
.github | ||
docker-example | ||
vendor | ||
.dockerignore | ||
.gitignore | ||
.golangci.yml | ||
CONTRIBUTING.md | ||
Dockerfile | ||
Gopkg.lock | ||
Gopkg.toml | ||
Jenkinsfile | ||
LICENSE.md | ||
Makefile | ||
README.md | ||
client.go | ||
collector.go | ||
handlers.go | ||
main.go | ||
metrics.go | ||
metrics_test.go | ||
registry.go |
README.md
WARNING: This software is deprecated since Geth 1.9.0
which introduced its own Prometheus endpoint.
geth_exporter
geth_exporter
is a metrics exporter for Prometheus.
Usage
go build && \
./geth_exporter -ipc node/data/path/geth.ipc -filter="whisper_*" -filter="les_*"
Docker example
cd docker-example
docker-compose up
At http://localhost:9200/metrics
you will have the geth_exporter
, it should send a response similar to this:
discv5_inboundTraffic_avgRate01Min 2981
discv5_inboundTraffic_avgRate05Min 2981
discv5_inboundTraffic_avgRate15Min 2981
discv5_inboundTraffic_meanRate 3591.687045952474
discv5_inboundTraffic_overall 18213
discv5_outboundTraffic_avgRate01Min 1733.4
discv5_outboundTraffic_avgRate05Min 1733.4
discv5_outboundTraffic_avgRate15Min 1733.4
discv5_outboundTraffic_meanRate 2356.6951261606164
....
At http://localhost:9090/graph
you can use Prometheus to query the exporter.
At http://localhost:3000/
you can log in to grafana with username admin
and password admin
.
Continous Deployment
To make possible deploying the new version of the page from the develop
branch a Jenkins job is configured at:
https://jenkins.status.im/job/misc/job/geth_exporter/
This job is ran according to the Jenkinsfile
configuration.
In order for this to work there are two requirements:
- The
status-im-auto
user which API token is used needs to have at least write access. - The repo has to have the https://jenkins.status.im/github-webhook/ webhook configured.
In order to push a new docker image the statusteamauto
user on DokerHub needs to have access to:
https://hub.docker.com/r/statusteam/geth_exporter/