1
0
Fork 0
mirror of https://github.com/eosswedenorg/eth-healthcheck synced 2026-06-16 05:04:55 +02:00
No description
Find a file
2022-10-26 23:20:12 +02:00
.github/workflows .github/workflows/package.yml: rename to release.yml 2021-08-16 16:04:11 +02:00
scripts Adding README.md 2021-08-13 14:35:17 +02:00
src/cmd Convert hard tabs to soft. 2022-03-02 17:25:57 +01:00
.gitignore Inital Commit 2021-08-13 12:59:22 +02:00
compile.sh Convert hard tabs to soft. 2022-03-02 17:25:57 +01:00
go.mod Update go modules. 2022-10-26 23:20:12 +02:00
go.sum Update go modules. 2022-10-26 23:20:12 +02:00
LICENSE LICENSE: Update year. 2022-03-02 17:23:45 +01:00
Makefile Inital Commit 2021-08-13 12:59:22 +02:00
README.md Adding README.md 2021-08-13 14:35:17 +02:00
set-version.sh Adding set-version.sh 2022-03-02 17:25:57 +01:00

Etherium Healthcheck for HAProxy

Etherium healthcheck for HAProxy via Etherium HTTP JSON-RPC API.

Compiling

You will need go-lang version 1.14 or later to compile the source.

CLI Options

When starting the tcp server you can specify what address and port it should listen to:

eth-healthcheck <ip> <port>

by default it will listen to 127.0.0.1:1301

JSON-RPC API

The healthcheck server can check any Etherium client that supports the JSON-RPC API via HTTP. Here is the documentation for the popular geth client.

HAproxy configuration

You will need to tell haproxy to send a message to the tcp server with the HTTP url to a etherium client's JSON-RPC API that you would like to check.

This url should be passed to the agent-send parameter in HAproxy config like this:

check agent-check agent-addr 127.0.0.1 agent-port 1301 agent-send "http://127.0.0.1:8545\n"

Read the documentation for more information.

Author

Henrik Hautakoski - henrik@eossweden.org